TanqoryDocs

customerUpdate

  • Mutation
  • Storefront

Updates the signed-in customer's name, email, phone, password or marketing consent; needs a valid customerAccessToken. A password change revokes old tokens and returns a new one.

Arguments

ArgumentTypeRequiredDefault
customerAccessTokenString!Required
customerCustomerUpdateInput!Required

Returns

CustomerUpdatePayload What customerUpdate returns: the updated customer, a new customerAccessToken when the password changed, and any customerUserErrors.

FieldTypeDescription
customerCustomer
customerAccessTokenCustomerAccessToken
customerUserErrors[CustomerUserError!]!
userErrors[UserError!]!

Deprecated

Example request

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

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

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation CustomerUpdate($customerAccessToken: String!, $customer: CustomerUpdateInput!) {\n  customerUpdate(customerAccessToken: $customerAccessToken, customer: $customer) {\n    customer { id }\n    userErrors {\n      field\n      message\n    }\n  }\n}","variables":{"customerAccessToken":"","customer":{}}}'

Built from commit c0b3fb3fdef7 · API version 2026-10