Get Supplier types

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

Key VendorTypes.get · API version 2.0.0

Parameters

6 body parameters inside data[]
FieldTypeDescription
idIntegerSupplier type ID
coderequiredStringSupplier type ID
namerequiredStringSupplier type name
get_allBooleanGet all
offsetNumberOffset
limitNumberLimit

Request example

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

Response example