stockCards query
stockCards 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 stock cards with their current figures, by variant, then warehouse. Use it
for a full export of stock, paging to the end, or after a page of
stockCardChanges to read a variant's cards in the other warehouses of a sum (filter
by variantIds, and by warehouseIds when you need).
- Requires the
stockCard.readpermission. - Cards of warehouses outside your API key's warehouse, legal-entity or country scope are left
out. Archived warehouses are included, exactly as
warehouseslists them. - A variant that is only on order, or advised into a warehouse where it never had stock, has no card there yet.
- 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:StockCardFilterfirst:Intafter:Stringlast:Intbefore:String
Returns
StockCardConnection!: a page of StockCard.
Example
Query
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.