Get warehouses
This endpoint is deprecated.
POST
/api/RPC.common.Api.Stores.get?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Warehouse ID |
coderequired | String | Warehouse ID |
namerequired | String | Warehouse name |
not_in_tree | Boolean | Get the result in a list (not in tree structure) |
show_sectors | Boolean | Also show locations |
get_all | Boolean | Get all |
offset | Number | Offset |
limit | Number | Limit |
Request example
Search By Id:
{
"data" : [
{
"id" : 1114346965
}
]
}
Search By Code:
{
"data" : [
{
"code" : "018"
}
]
}
Search By Name:
{
"data" : [
{
"name" : "Warehouse Romania"
}
]
}
Search By All Params:
{
"data" : [
{
"id" : 1114346965,
"name" : "Warehouse Romania",
"code" : "018"
}
]
}
Get All:
{
"data":[
{}
],
"get_all":1,
"limit":10000,
"offset":0
}
Get All With Sectors:
{
"data":[
{}
],
"get_all":1,
"show_sectors":1,
"limit":10000,
"offset":0
}
Get All With Sectors And List Structure (not in tree):
{
"data":[
{}
],
"get_all":1,
"show_sectors":1,
"not_in_tree":1,
"limit":10000,
"offset":0
}cURL
Search By Id:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "id" : 1114346965 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Stores.get?token=<TOKEN>"
Search By Code:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "code" : "018" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Stores.get?token=<TOKEN>"
Search By Name:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "name" : "Warehouse Romania" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Stores.get?token=<TOKEN>"
Search By All Params:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "id" : 1114346965, "name" : "Warehouse Romania", "code" : "018" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Stores.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.Stores.get?token=<TOKEN>"
Curl example Get All With Sectors:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data":[ {} ], "get_all":1, "show_sectors":1, "limit":10000, "offset":0} ' "https://<DOMAIN_NAME>/api/RPC.common.Api.Stores.get?token=<TOKEN>"
Curl example Get All With Sectors And List Structure (not in tree):
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data":[ {} ], "get_all":1, "show_sectors":1, "not_in_tree":1, "limit":10000, "offset":0} ' "https://<DOMAIN_NAME>/api/RPC.common.Api.Stores.get?token=<TOKEN>"Response example