Fetch inventories
By default, an organization has 4 inventories of different types respectively:
STORE
, SOLD
, SUPPLIER
and BIN
. They each represent a conceptual inventory with a stock level.You can fetch a list of all available inventories for the organization. Fetching inventories can be used when working with inventory balances and stock management.
- Make sure that authorisation is set up with the following OAuth scope using OAuth API:
READ:PRODUCT
Use this request to fetch all inventories for the organization the merchant is signed in as.
Example: This example fetches the inventories for the organization associated with the authorization token. In the request header, the token is passed in type
Authorization: Bearer eyJraWQiOiIxNjM3MTg1Mjg0Nz...
.Request
Response
Use this request to retrieve a single inventory that the organization the client is signed in as has access to.
Example: This example retrieves the inventory that has the supplied
inventoryUuid
for the organization associated with the authorization token. The token is passed in the request header and is of type Authorization: Bearer eyJraWQiOiIxNjM3MTg1Mjg0Nz...
.Request
Response
Ensure inventory UUIDs are saved so they are available for access by the client system.
They will be used in most other calls when managing inventory balances.