TanqoryDocs

tanqoryExtInventoryActivateAtLocation

  • Mutation
  • Inventory and fulfillment

Stocks inventory items at an active location, as inventoryActivate does for one item: each item not yet stocked there gets an inventory level with 0 available and 0 on hand, and an item already stocked there keeps its quantities. Choose the items with productIds (every variant of each product) and inventoryItemIds, at most 250 of each, or with allInventoryItems (every inventory item of the store). Errors: NOT_FOUND (no such location, product or inventory item of the store), INVALID (the location is deactivated, more than 250 ids, or allInventoryItems together with ids), REQUIRED (nothing chosen).

Arguments

ArgumentTypeRequiredDefault
allInventoryItemsBooleanOptionalfalse
inventoryItemIds[ID!]Optional
locationIdID!Required
productIds[ID!]Optional

Returns

TanqoryExtInventoryActivateAtLocationPayload

FieldTypeDescription
alreadyStockedCountInt

How many of the chosen inventory items were already stocked there and were left as they are.

locationLocation

The location the items are stocked at.

stockedCountInt

How many inventory items were stocked at the location by this call (each with 0 available and 0 on hand).

userErrors[TanqoryExtLocationUserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtInventoryActivateAtLocation($locationId: ID!) {\n  tanqoryExtInventoryActivateAtLocation(locationId: $locationId) {\n    alreadyStockedCount\n    location { id }\n    stockedCount\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"locationId":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10