TanqoryDocs

tanqoryExtRefundTransactionMark

  • Mutation
  • Orders and payments

Records what the merchant found in the provider's dashboard for a pending refund the provider never settles by itself (OrderTransaction.tanqoryExtRefundFinishesInProviderDashboard): REFUNDED settles it as a successful refund, NOT_REFUNDED as a failed one, and the order's timeline names the staff member's action. Staff only. The same outcome again changes nothing. NOT_FOUND, NOT_PENDING, NOT_FINISHED_IN_PROVIDER_DASHBOARD, NOT_ALLOWED.

Arguments

ArgumentTypeRequiredDefault
idID!Required
outcomeTanqoryExtRefundMarkOutcome!Required

Returns

TanqoryExtRefundTransactionMarkPayload

FieldTypeDescription
transactionOrderTransaction

The refund as it is now.

userErrors[TanqoryExtRefundMarkUserError!]!

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 TanqoryExtRefundTransactionMark($id: ID!, $outcome: TanqoryExtRefundMarkOutcome!) {\n  tanqoryExtRefundTransactionMark(id: $id, outcome: $outcome) {\n    transaction { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"id":"gid://tanqory/Type/id","outcome":"NOT_REFUNDED"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10