Get price lists
POST
/api/RPC.common.Api.PricesLists.get?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Price list ID |
coderequired | String | Price list code |
namerequired | String | Price list name |
get_all | Boolean | Get all |
offset | Number | Offset |
limit | Number | Limit |
Request example
Search By Id:
{
"data" : [
{
"id" : 1041821748
}
]
}
Search By Code:
{
"data" : [
{
"code" : 54236
}
]
}
Search By Name:
{
"data" : [
{
"name" : "Antipodes"
}
]
}
Search By All Params:
{
"data" : [
{
"name" : "Antipodes",
"id" : 1041821748,
"code" : 54236
}
]
}
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" : 1041821748 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.PricesLists.get?token=<TOKEN>"
Search By Code:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "code" : 54236 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.PricesLists.get?token=<TOKEN>"
Search By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "name" : "Antipodes" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.PricesLists.get?token=<TOKEN>"
Search By All Params:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "name" : "Antipodes", "id" : 1041821748, "code" : 54236 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.PricesLists.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.PricesLists.get?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"result" : [
{
"formula" : "",
"status" : 1,
"tp" : "standard",
"code" : 54236,
"id" : 1041821748,
"name" : "Antipodes"
}
],
"total_count" : 1,
"count" : 1
}