Get customer types

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

Key ClientTypes.get · API version 2.0.0

Parameters

6 body parameters inside data[]
FieldTypeDescription
idIntegerCustomer type ID
coderequiredStringCustomer type ID
namerequiredStringCustomer type name
get_allBooleanGet all
offsetNumberOffset
limitNumberLimit

Request example

Search By Id:
{
   "data" : [
      {
         "id" : 1231080329
      }
   ]
}
Search By Code:
{
   "data" : [
      {
         "code" : 1213
      }
   ]
}
Search By Name:
{
   "data" : [
      {
         "name" : "Hypermarket"
      }
   ]
}
Search By All Params:
{
   "data" : [
      {
         "code" : 1213,
         "id" : 1231080329,
         "name" : "Hypermarket"
      }
   ]
}
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" : 1231080329      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.ClientTypes.get?token=<TOKEN>"
Search By Code:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "code" : 1213      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.ClientTypes.get?token=<TOKEN>"
Search By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "name" : "Hypermarket"      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.ClientTypes.get?token=<TOKEN>"
Search By All Params:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "code" : 1213,         "id" : 1231080329,         "name" : "Hypermarket"      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.ClientTypes.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.ClientTypes.get?token=<TOKEN>"

Response example