Get delivery methods
This endpoint is deprecated.
POST
/api/RPC.common.Api.DeliveryTypes.get?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Delivery method ID |
coderequired | String | Delivery method ID |
namerequired | String | Delivery method name |
get_all | Boolean | Get all |
offset | Number | Offset |
limit | Number | Limit |
Request example
Search By Id:
{
"data" : [
{
"id" : 1227389305
}
]
}
Search By Code:
{
"data" : [
{
"code" : 78687
}
]
}
Search By Name:
{
"data" : [
{
"name" : "Transport service"
}
]
}
Search By All Params:
{
"data" : [
{
"code" : 78687,
"name" : "Transport service",
"id" : 1227389305
}
]
}
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" : 1227389305 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.DeliveryTypes.get?token=<TOKEN>"
Search By Code:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "code" : 78687 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.DeliveryTypes.get?token=<TOKEN>"
Search By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "name" : "Transport service" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.DeliveryTypes.get?token=<TOKEN>"
Search By All Params:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "code" : 78687, "name" : "Transport service", "id" : 1227389305 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.DeliveryTypes.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.DeliveryTypes.get?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"result" : [
{
"name" : "Transport service",
"id" : 1227389305,
"integration_system_id" : null,
"code" : 78687
}
],
"total_count" : 1,
"count" : 1
}