tanqoryExtAppChargeConfirmation
- Query
- Apps and platform
The charge a confirmation URL names, as the approval page shows it; null when there is none or the signature is wrong.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
id | ID! | Required | |
kind | TanqoryExtAppChargeKind! | Required | |
signature | String! | Required |
Returns
TanqoryExtAppChargeConfirmation What the approval page shows for one charge.
| Field | Type | Description |
|---|---|---|
app | TanqoryExtAppChargeApp! | |
balanceUsed | MoneyV2 | |
cappedAmount | MoneyV2 | |
currencyCode | CurrencyCode! | |
decidable | Boolean! | Whether the merchant can still approve or decline it. |
decision | Boolean | The merchant's decision when one was made here: true = approved, false = declined, null = none. |
discountAmount | MoneyV2 | The fixed discount amount, or null for a percentage. |
discountDurationInIntervals | Int | How many intervals the discount lasts; null = for as long as the subscription runs. |
discountPercentage | Float | Discount as a fraction (0.2 = 20 %), or null for a fixed amount. |
discountedPrice | MoneyV2 | The recurring price while the discount lasts. |
expiresAt | DateTime | When the charge expires unless decided (created + 2 days); null once decided. |
firstChargeAt | DateTime | When the first recurring charge would be made if approved now (after the trial). |
id | ID! | The charge's gid (AppSubscription, AppPurchaseOneTime, or the AppSubscriptionLineItem of a new capped amount). |
interval | AppPricingInterval | |
kind | TanqoryExtAppChargeKind! | |
name | String! | |
oneTimePrice | MoneyV2 | A one-time purchase's price. |
previousCappedAmount | MoneyV2 | A new capped amount: the cap in force now and what was used of it this period. |
recurringPrice | MoneyV2 | The recurring price per interval, before any discount. |
replacement | TanqoryExtAppChargeReplacement | |
status | String! | The charge's status: PENDING until decided; ACTIVE, DECLINED, EXPIRED, CANCELLED or FROZEN after. |
test | Boolean! | |
trialDays | Int! | |
usageTerms | String | Usage terms and the cap per 30 days of the usage line. |
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 TanqoryExtAppChargeConfirmation($id: ID!, $kind: TanqoryExtAppChargeKind!, $signature: String!) {\n tanqoryExtAppChargeConfirmation(id: $id, kind: $kind, signature: $signature) {\n app { id }\n balanceUsed {\n amount\n currencyCode\n }\n cappedAmount {\n amount\n currencyCode\n }\n currencyCode\n decidable\n decision\n discountAmount {\n amount\n currencyCode\n }\n discountDurationInIntervals\n discountPercentage\n discountedPrice {\n amount\n currencyCode\n }\n }\n}","variables":{"id":"gid://tanqory/Type/id","kind":"CAPPED_AMOUNT","signature":""}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtAppChargeConfirmation(\$id: ID!, \$kind: TanqoryExtAppChargeKind!, \$signature: String!) {
tanqoryExtAppChargeConfirmation(id: \$id, kind: \$kind, signature: \$signature) {
app { id }
balanceUsed {
amount
currencyCode
}
cappedAmount {
amount
currencyCode
}
currencyCode
decidable
decision
discountAmount {
amount
currencyCode
}
discountDurationInIntervals
discountPercentage
discountedPrice {
amount
currencyCode
}
}
}`;
const variables = {
"id": "gid://tanqory/Type/id",
"kind": "CAPPED_AMOUNT",
"signature": ""
};
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 TanqoryExtAppChargeConfirmation($id: ID!, $kind: TanqoryExtAppChargeKind!, $signature: String!) {
tanqoryExtAppChargeConfirmation(id: $id, kind: $kind, signature: $signature) {
app { id }
balanceUsed {
amount
currencyCode
}
cappedAmount {
amount
currencyCode
}
currencyCode
decidable
decision
discountAmount {
amount
currencyCode
}
discountDurationInIntervals
discountPercentage
discountedPrice {
amount
currencyCode
}
}
}"""
variables = json.loads("""{
"id": "gid://tanqory/Type/id",
"kind": "CAPPED_AMOUNT",
"signature": ""
}""")
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))