TanqoryDocs

tanqoryExtAppChargeDecide

  • Mutation
  • Apps and platform

Approves (accept: true) or declines a pending charge from its confirmation URL. One decision per charge: a second call answers the first decision again (replayed: true). Errors: NOT_FOUND, EXPIRED, ALREADY_DECIDED, NOT_ACTIVE.

Arguments

ArgumentTypeRequiredDefault
acceptBoolean!Required
idID!Required
kindTanqoryExtAppChargeKind!Required
signatureString!Required

Returns

TanqoryExtAppChargeDecidePayload!

FieldTypeDescription
redirectUrlURL

Where to send the merchant: the app's return URL with charge_id after an approval; null after a decline (the dashboard shows the app's page). For a theme purchase, the Theme Store's return URL after either (charge_id after an approval).

replayedBoolean!

True when this answers a decision made before (a second click): nothing changed.

statusString

The charge's status after the decision.

userErrors[TanqoryExtAppChargeUserError!]!

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":"mutation TanqoryExtAppChargeDecide($accept: Boolean!, $id: ID!, $kind: TanqoryExtAppChargeKind!, $signature: String!) {\n  tanqoryExtAppChargeDecide(accept: $accept, id: $id, kind: $kind, signature: $signature) {\n    redirectUrl\n    replayed\n    status\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"accept":false,"id":"gid://tanqory/Type/id","kind":"CAPPED_AMOUNT","signature":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10