TanqoryDocs

tanqoryExtCustomerContact

  • Mutation
  • Customers and B2B

Writes to a customer by email (the reference admin's Contact customer): the store's CONTACT_CUSTOMER notification with the staff member's message, and their subject in place of the template's when one is given. It goes to the customer's own email address, or with orderId to that order's address; an order of another customer is NOT_FOUND. Refused (NOT_ALLOWED) while the platform switch customer_contact_email is off.

Arguments

ArgumentTypeRequiredDefault
customerIdID!Required
inputTanqoryExtCustomerContactInput!Required

Returns

TanqoryExtCustomerAccountPayload

FieldTypeDescription
customerCustomer

The customer as stored after the change.

userErrors[TanqoryExtCustomerUserError!]!

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 TanqoryExtCustomerContact($customerId: ID!, $input: TanqoryExtCustomerContactInput!) {\n  tanqoryExtCustomerContact(customerId: $customerId, input: $input) {\n    customer { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"customerId":"gid://tanqory/Type/id","input":{"message":""}}}'

Built from commit 0cac88ece6de · API version 2026-10