TanqoryDocs

customerByIdentifier

  • Query
  • Customers and B2B

Requires read_customers access scope. About access scopes

Arguments

ArgumentTypeRequiredDefault
identifierCustomerIdentifierInput!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 CustomerByIdentifier($identifier: CustomerIdentifierInput!) {\n  customerByIdentifier(identifier: $identifier) {\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":{"identifier":{}}}'

Built from commit c0b3fb3fdef7 · API version 2026-10