Chameleoon MAX · Inventory
stockQuants query
stockQuants is a GraphQL query of the Chameleoon MAX API. Send it as POST https://max-api.chameleoon.sk/api/v1/graphql with your API key, see Chameleoon MAX.
Returns what lies in which bin of the named warehouses: one row per variant, bin and lot with stock, in base units, by bin, variant, then row. Use it to see where goods are before you plan a move.
- Requires the
stockCard.readandposition.readpermissions. lotandlotStatusalso require thelot.readpermission. Without it, they are null withFORBIDDEN_ROLEat their path, and the rest of the row is returned.- Lots are returned whatever their status. Read
lotStatusandlot.expiresAt. - The scope is as in
stockCards. - The connection has no total count.
Pass exactly one of first or last, from 1 to 250. first (with after) pages forward;
last (with before) pages backward. last alone returns the last page. Every edge carries
its own cursor.
A page costs 2 + first (or last) × the cost of one node.
Arguments
filter:StockQuantFilter!· requiredfirst:Intafter:Stringlast:Intbefore:String
Returns
StockQuantConnection!: a page of StockQuant.
Example
Query
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.