tanqoryExtNotificationTemplates
- Query
- Apps and platform
Every notification of the audience (all when omitted), in the order of the reference admin's lists.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
audience | TanqoryExtNotificationAudience | Optional |
Returns
[TanqoryExtNotificationTemplate!]!
| Field | Type | Description |
|---|---|---|
audience | TanqoryExtNotificationAudience! | |
customized | Boolean! | Whether the email or SMS of this locale differs from the default. |
defaultEmailBody | String! | |
defaultEmailSubject | String! | |
defaultReview | String! | Review state of the built-in text in this locale: source (English), needs-native-review (a machine draft, sent as is until reviewed) or reviewed. |
editable | Boolean! | Whether it has an email the merchant can edit. |
emailBody | String! | |
emailSubject | String! | |
enabled | Boolean! | |
group | String! | The section of the list, e.g. ORDER_PROCESSING. |
handle | String! | Stable key, e.g. ORDER_CONFIRMATION, STAFF_NEW_ORDER. |
locale | String! | The locale of the text below. |
managedIn | String | Where this notification is turned on and set up instead of a switch in the list, e.g. PAYMENT_REMINDERS (Settings > Payments > Payment reminders). Null for the others. |
notSentReason | String | Why it is not sent yet; null when it is sent. |
outdated | Boolean! | The merchant's text was written against an older built-in text of this locale. |
scheduleDay | Int | Store order summary: weekday (0 = Sunday) and hour (store time zone). Null for others. |
scheduleHour | Int | |
sendTo | [TanqoryExtNotificationChannel!] | Customer marketing confirmation only: the channels whose new marketing sign-ups wait for this confirmation (email subscribers, SMS subscribers). A channel left out subscribes at once. |
sent | Boolean! | Whether anything in the system sends it. False: it has no event yet, whatever |
smsBody | String | The SMS text; null for a notification sent by email only. |
toggleable | Boolean! | Whether the merchant can switch it off. The one field every app reads for this: true, the list shows a switch; false, it is always sent and the list shows it as Required. A template page has no switch. |
updatedAt | DateTime |
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 -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 TanqoryExtNotificationTemplates {\n tanqoryExtNotificationTemplates {\n audience\n customized\n defaultEmailBody\n defaultEmailSubject\n defaultReview\n editable\n emailBody\n emailSubject\n enabled\n group\n }\n}","variables":{}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtNotificationTemplates {
tanqoryExtNotificationTemplates {
audience
customized
defaultEmailBody
defaultEmailSubject
defaultReview
editable
emailBody
emailSubject
enabled
group
}
}`;
const variables = {};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtNotificationTemplates {
tanqoryExtNotificationTemplates {
audience
customized
defaultEmailBody
defaultEmailSubject
defaultReview
editable
emailBody
emailSubject
enabled
group
}
}"""
variables = json.loads("""{}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))