TanqoryDocs

tanqoryExtNotificationPreview

  • Query
  • Apps and platform

A notification's email rendered with sample data, as its preview page and its test email show it: the stored template, or emailSubject / emailBody when given (an unsaved draft). Liquid branches and loops are evaluated. Null for an unknown handle or a notification without an email. Resolvers: apps/api/src/domains/notifications/.

Arguments

ArgumentTypeRequiredDefaultDescription
companyIdIDOptional

A company of the store: its name fills company.name (the B2B access email's send dialog). Ignored when unknown.

customMessageStringOptional

Fills custom_message: the message the merchant is writing for the email.

emailBodyStringOptional
emailSubjectStringOptional
handleString!Required
localeStringOptional

Locale of the text and of the sample (default: the store's primary locale).

Returns

TanqoryExtNotificationPreview

FieldTypeDescription
documentString

The whole email document as it goes out (logo, accent colour, language and direction).

errorString

Why the template can't be rendered (a Liquid syntax error), or null.

htmlString!

The rendered email body (HTML).

smsString

The SMS text with the sample data; null for a notification sent by email only.

subjectString!

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 TanqoryExtNotificationPreview($handle: String!) {\n  tanqoryExtNotificationPreview(handle: $handle) {\n    document\n    error\n    html\n    sms\n    subject\n  }\n}","variables":{"handle":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10