Skip to content
gist.link ↗

adjustInventory

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

Set the absolute on-hand quantity of a variant at a location. ADMIN.

shop:mutation:adjustInventory

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

type Mutation {
adjustInventory(input: AdjustInventoryInput!): InventoryLevel!
}
Argument Type Required Description
input AdjustInventoryInput! Yes —

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": "mutation AdjustInventory($input: AdjustInventoryInput!) { adjustInventory(input: $input) { id uuid created_at updated_at } }",
"variables": {
"input": {
"variantId": "example",
"locationId": "example",
"quantity": 10
}
}
}
JSON