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 stock by id

GET

https://api.pack.cloud/v1/warehouses/{warehouseId}/stocks/{stockId}

Request

Path parameters

warehouseIdstring
stockIdstring

Response

OK

Body

idstring
ID of the stock
locatable_idstringnull
ID of the locatable
locatable_typestringnull
Type of the locatable
Allowed values:binpickliststock_location
product_idstring
ID of the product
quantity_allocatedinteger
Quantity allocated to fulfillments
quantity_on_handinteger
Quantity currently on hand
quantity_availableinteger
Quantity available
expiry_datestringnull
Expire date of perishable products
lot_numberstringnull
Lot number perishable products
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource