TanqoryDocs

customer

  • Query
  • Customers and B2B

Requires read_customers access scope. About access scopes

Returns one customer by ID, or null when the store has no such customer.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

Customer A person who buys from the store: contact details, addresses, marketing consent, orders, amount spent and notes.

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 Customer($id: ID!) {\n  customer(id: $id) {\n    addresses { id }\n    amountSpent {\n      amount\n      currencyCode\n    }\n    canDelete\n    companyContactProfiles { id }\n    createdAt\n    dataSaleOptOut\n    defaultAddress { id }\n    displayName\n    email\n    firstName\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10