tanqoryExtCheckoutPaymentOptions
- Query
- Storefront
The payment options checkout offers for the cart, in order: the store's payments account, then its gateway accounts, then its active manual methods. Null when the cart is unknown or its key is wrong.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
cartId | ID! | Required |
Returns
[TanqoryExtCheckoutPaymentOption!]
| Field | Type | Description |
|---|---|---|
id | ID! | Opaque; give it to tanqoryExtCartPaymentOptionSelect. |
kind | TanqoryExtCheckoutPaymentOptionKind! | |
gatewaySlug | String | The gateway slug ( |
name | String! | The gateway's or the manual method's name. |
methodType | String | card, promptpay, bank_transfer, ... (gateway options); null for a manual method. |
test | Boolean! | Payments in test mode. |
manualPayment | TanqoryExtManualPaymentDetails | The manual method's details shown at checkout; null for other kinds. |
clientConfig | JSON | Public settings of the option for the checkout page (marks, banks / channels, installment plans, wallet flags), given by the gateway from the account's public values. Never a secret. May be null. |
title | String | The name a payment customization gave this option (Settings › Payments › Payment customizations, rename); null: the checkout names it. |
moved | Boolean! | True when a payment customization moved this option: the checkout shows the options in this list's order. |
charge | MoneyV2 | What the buyer is charged with this option when it is not the cart's charge in the cart's currency: the store's payments account cannot charge the cart's currency, so it charges the shop currency, this exact amount (the cart's charge in the order's shop money). The checkout shows it before the buyer pays. Null: the cart's own amount and currency (cart.cost.checkoutChargeAmount). |
Example request
A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.
Set STORE_ID and TANQORY_STOREFRONT_TOKEN in your environment first (Make your first API call).
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
-H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
-H "Content-Type: application/json" \
--data '{"query":"query TanqoryExtCheckoutPaymentOptions($cartId: ID!) {\n tanqoryExtCheckoutPaymentOptions(cartId: $cartId) {\n id\n kind\n gatewaySlug\n name\n methodType\n test\n clientConfig\n title\n moved\n charge {\n amount\n currencyCode\n }\n }\n}","variables":{"cartId":"gid://tanqory/Type/id"}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtCheckoutPaymentOptions(\$cartId: ID!) {
tanqoryExtCheckoutPaymentOptions(cartId: \$cartId) {
id
kind
gatewaySlug
name
methodType
test
clientConfig
title
moved
charge {
amount
currencyCode
}
}
}`;
const variables = {
"cartId": "gid://tanqory/Type/id"
};
const res = await fetch(`https://${process.env.STORE_HOST}/api/v1/stores/${process.env.STORE_ID}/2026-10/graphql`, {
method: 'POST',
headers: {
'X-Tanqory-Storefront-Access-Token': process.env.TANQORY_STOREFRONT_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 TanqoryExtCheckoutPaymentOptions($cartId: ID!) {
tanqoryExtCheckoutPaymentOptions(cartId: $cartId) {
id
kind
gatewaySlug
name
methodType
test
clientConfig
title
moved
charge {
amount
currencyCode
}
}
}"""
variables = json.loads("""{
"cartId": "gid://tanqory/Type/id"
}""")
req = urllib.request.Request(
"https://" + os.environ["STORE_HOST"] + "/api/v1/stores/" + os.environ["STORE_ID"] + "/2026-10/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"X-Tanqory-Storefront-Access-Token": os.environ["TANQORY_STOREFRONT_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))