TanqoryDocs

tanqoryExtCustomerCommentCreate

  • Mutation
  • Customers and B2B

Posts a staff comment on a customer's timeline. It reads back as a CommentEvent in Customer.events. Only staff see comments; nobody is notified. fileIds: files of the store, shown as attachments.

Arguments

ArgumentTypeRequiredDefault
customerIdID!Required
fileIds[ID!]Optional
messageString!Required

Returns

TanqoryExtCustomerCommentPayload

FieldTypeDescription
eventCommentEvent
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 TanqoryExtCustomerCommentCreate($customerId: ID!, $message: String!) {\n  tanqoryExtCustomerCommentCreate(customerId: $customerId, message: $message) {\n    event { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"customerId":"gid://tanqory/Type/id","message":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10