Get accounts

This endpoint is deprecated.
POST/api/RPC.common.Api.Accounts.get?token=<TOKEN>

Key Accounts.get · API version 2.0.0

Parameters

6 body parameters inside data[]
FieldTypeDescription
idIntegerAccount ID
coderequiredStringAccount ID
namerequiredStringAccount name
get_allBooleanGet all
offsetNumberOffset
limitNumberLimit

Request example

Search By Id:
{
   "data" : [
      {
         "id" : 21830
      }
   ]
}
Search By Name:
{
   "data" : [
      {
         "name" : "Sub-account Card payments"
      }
   ]
}
Search By All Params:
{
   "data" : [
      {
         "id" : 21830,
         "name" : "Sub-account Card payments",
         "code" : null
      }
   ]
}
Get All:
{
	"data":[
		{}
	],
	"get_all":1,
	"limit":10000,
	"offset":0
}

cURL

Search By Id:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "id" : 21830      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Accounts.get?token=<TOKEN>"
Search By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "name" : "Sub-account Card payments"      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Accounts.get?token=<TOKEN>"
Get By All Params:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "id" : 21830,         "name" : "Sub-account Card payments",         "code" : null      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Accounts.get?token=<TOKEN>"
Curl example Get All:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{	"data":[		{}	],	"get_all":1,	"limit":10000,	"offset":0}	' "https://<DOMAIN_NAME>/api/RPC.common.Api.Accounts.get?token=<TOKEN>"

Response example

    HTTP/1.1 200 OK
{
   "result" : [
      {
         "tp" : "virtual",
         "id" : 21830,
         "name" : "Sub-account Card payments",
         "code" : null
      }
   ],
   "count" : 1,
   "total_count" : 1
}