GraphQL Inventory Queries
Author:
Holger Lierse
Changed on:
1 July 2024
Overview
Sample Inventory Queries that can be used on a daily basis.Key points
- An actual example of a GraphQL query on the following:
- Inventory Position by Details
- Inventory Position by Reference
- Inventory Positions
- Inventory Quantity Updated
Inventory Position by Details
Retrieve inventory positions based on details`productRefs` and `locationRef` including the corresponding inventory quantities.Example Query:Example Parameters:Inventory Position by Reference
Retrieve an inventory position based on a specific ref. In the default setup, an inventory position reference follows the format: "`<productRef>:<locationRef>:DEFAULT`"Example Query:
Example Parameters:
Inventory Positions
Retrieve inventory positions and specific inventory quantities (`LAST_ON_HAND`, `RESERVED`, `CORRECTION`) by paginating through the records with a cursor.Example Query:
Example Parameters:
Inventory Quantity Updated
Retrieve inventory quantities (type:`LAST_ON_HAND`) that have been updated in a specific timeframe.