Chameleoon MAX · Inventory
warehouses query
warehouses 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 the warehouses your API key may read, archived ones included, by code, then id. Use it to find the MAX ids of the warehouses that your stock calls name.
- Requires the
warehouse.readpermission. - Warehouses outside your API key's warehouse, legal-entity or country scope are left out.
- 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
first:Intafter:Stringlast:Intbefore:String
Returns
WarehouseConnection!: a page of Warehouse.
Example
Query
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.