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 mutations

GET

https://api.pack.cloud/v1/organizations/{organizationId}/stock-mutations

Request

Path parameters

organizationIdstring

Query parameters

filter[product_id]string
filter[stock_id]string
filter[warehouse_id]string
includearray
Allowed values:locatableproductstockcreated_bytransactionswarehouse
sortstring
Allowed values:created_at-created_at

Response

OK

Body

idstring
ID of the stock mutation
locatable_idstringnull
ID of the locatable
locatable_typestringnull
Type of the locatable
Allowed values:binpickliststock_location
product_idstring
ID of the product
stock_idstring
ID of the stock
warehouse_idstring
ID of the warehouse
deltainteger
The change of quantity
reasonstringnull
Manual given reason for stock mutation
expiry_datestringnull
Expire date of perishable products
lot_numberstringnull
Lot number perishable products
created_atstring
Creation time of resource
Creator of stock mutation (requires created_by and warehouse include)
prevstringnull
Link to previous page
nextstringnull
Link to next page
per_pageinteger
Item count per page
Example:25