Skip to content
gist.link ↗

inventoryLevels

Query Shop API — POST https://shop.api.gist.link/graphql

Inventory levels for the organization, optionally scoped to one location. ADMIN.

shop:query:inventoryLevels

The calling IAM key must hold this permission (or a wildcard that covers it: shop:query:* or shop:*) and the access token must have been minted with audience=shop. See Permissions.

type Query {
inventoryLevels(locationId: String): [InventoryLevel!]!
}
Argument Type Required Description
locationId String No —

[InventoryLevel!]! — see the Shop types reference.

Terminal window
curl https://shop.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query InventoryLevels($locationId: String) { inventoryLevels(locationId: $locationId) { id uuid created_at updated_at } }",
"variables": {
"locationId": "example"
}
}
JSON