The Rest API is deprecated and will be removed in the future. We recommend using the GraphQL API instead. Some endpoints may not be available anymore.

Get list of stock locations

GET

https://api.pack.cloud/v1/warehouses/{warehouseId}/stock-locations

Request

Path parameters

warehouseIdstring

Query parameters

filter[has_no_empty_stock]boolean
Checks if the location is linked to a stock that is not empty.
filter[has_stock]boolean
Checks if the location is linked to a stock.
filter[name]string
filter[name.startsWith]string
filter[parent_id]string
filter[pickable]boolean
filter[stock_location_type_id]string
sortstring
Allowed values:created_at-created_atname-name

Response

OK

Body

idstring
ID of the stock location
parent_idstringnull
ID of the parent stock location
stock_location_type_idstring
ID of the stock location type
namestring
Human readable location code
Example:A.02.05.B
slotting_typestring
Slotting type (dynamic = unlink product when qty is zero)
Allowed values:dynamicstatic
pickableboolean
When true, stock in this location is available for picking
sort_pathstring
Sort safe path
Example:A.000002.000005.B
product_limitintegernull
The number of products allowed to be stocked on this location. Use null for unlimited
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
stocks_countinteger
Total number of products stocked at the location
prevstringnull
Link to previous page
nextstringnull
Link to next page
per_pageinteger
Item count per page
Example:25