Returns the warehouses (stores) configured in your PRIM instance. Pass get_all to fetch the whole list, or filter by id, code or name. Set not_in_tree to get a flat list instead of the tree structure.

Get warehouses

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

Key Stores.get · API version 2.0.0

Parameters

8 body parameters inside data[]
FieldTypeDescription
idIntegerWarehouse ID
coderequiredStringWarehouse ID
namerequiredStringWarehouse name
not_in_treeBooleanGet the result in a list (not in tree structure)
show_sectorsBooleanAlso show locations
get_allBooleanGet all
offsetNumberOffset
limitNumberLimit

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