tanqoryExtEmailSuppression
- Query
- Apps and platform
The store's suppression of one email address (EMAIL_ARCHITECTURE.md §4.6), for the customer page. Null when the store sends to it normally. A HARD_BOUNCE stops every store email to it, order confirmations and sign-in codes included; every other reason stops marketing only. One store's list never affects another store.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
email | String! | Required |
Returns
| Field | Type | Description |
|---|---|---|
clearable | Boolean! | Whether the merchant can resume email (HARD_BOUNCE and SOFT_BOUNCE); an unsubscribe or a complaint only the person can lift. |
createdAt | DateTime! | |
marketingReason | TanqoryExtEmailSuppressionReason | HARD_BOUNCE only: an unsubscribe or spam report recorded before the bounce, which stays after Resume email. |
reason | TanqoryExtEmailSuppressionReason! | |
scope | TanqoryExtEmailSuppressionScope! | |
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 TanqoryExtEmailSuppression($email: String!) {\n tanqoryExtEmailSuppression(email: $email) {\n clearable\n createdAt\n marketingReason\n reason\n scope\n updatedAt\n }\n}","variables":{"email":""}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtEmailSuppression(\$email: String!) {
tanqoryExtEmailSuppression(email: \$email) {
clearable
createdAt
marketingReason
reason
scope
updatedAt
}
}`;
const variables = {
"email": ""
};
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 TanqoryExtEmailSuppression($email: String!) {
tanqoryExtEmailSuppression(email: $email) {
clearable
createdAt
marketingReason
reason
scope
updatedAt
}
}"""
variables = json.loads("""{
"email": ""
}""")
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))