TanqoryDocs

productVariant

  • Query
  • Products

Requires read_products access scope. About access scopes

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

ProductVariant One purchasable version of a product, such as a size and colour, with its own price, SKU, barcode, inventory and selected options.

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":"query ProductVariant($id: ID!) {\n  productVariant(id: $id) {\n    availableForSale\n    barcode\n    compareAtPrice\n    createdAt\n    defaultCursor\n    deliveryProfile { id }\n    displayName\n    id\n    image { id }\n    inventoryItem { id }\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10