stockDemand query
stockDemand 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 a page of what confirmed orders wait for in the named warehouses, by variant, then
warehouse: per product variant and warehouse, what is waiting, what is incoming to make it
reservable, and what is missing. Use it with stockSources to plan a move of the
goods that orders wait for, then write a transfer advice. Nothing is moved.
- Requires the
stockCard.readandtransferAdvice.readpermissions. - Only rows with something waiting are returned.
- A warehouse outside your API key's warehouse, legal-entity or country scope is left out, as
in
stockCards. - The connection has no total count.
What counts as incoming
incoming is the remaining quantity of the OPEN transfer advice lines of the variant into the
warehouse that will make goods reservable there:
- Inside the warehouse: the line's target bin is pickable, of kind
STOCKorRECEIVINGand in use, and its source bin is not pickable (or not set). - From another warehouse: the bin the goods land on -- the line's target bin, or the target
warehouse's default bin when the line names none -- is pickable, of kind
STOCKorRECEIVINGand in use. - In both, the line's lot, if it names one, is released and not expired where the target warehouse blocks expired stock.
binRefills takes the same incoming off the waiting share it proposes, so a refill by
levels and a refill for orders never move the same waiting twice.
Excepting your own advices
filter.exceptAdviceIds names OPEN transfer advices that nobody has started, at most 20. Their
remaining quantity is left out of incoming. The rules are those of binRefills: an
advice somebody has started returns VALIDATION at exceptAdviceIds with extensions.reason
ADVICE_STARTED, and any other id changes nothing.
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:StockDemandFilter!· requiredfirst:Intafter:Stringlast:Intbefore:String
Returns
StockDemandConnection!: a page of StockDemand.
Example
Query
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.