TanqoryDocs

refund

  • Query
  • Orders and payments

Requires one of read_buyer_membership_orders, read_marketplace_orders, read_orders access scope. About access scopes

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

Refund

FieldTypeDescription
createdAtDateTime
duties[RefundDuty!]
idID!
legacyResourceIdUnsignedInt64!
noteString
orderOrder!
orderAdjustmentsOrderAdjustmentConnection!
processedAtDateTime!
refundLineItemsRefundLineItemConnection!
refundShippingLinesRefundShippingLineConnection!
returnReturn
staffMemberStaffMember
totalRefundedMoneyV2!

Deprecated

totalRefundedSetMoneyBag!
transactionsOrderTransactionConnection!
updatedAtDateTime!

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":"query Refund($id: ID!) {\n  refund(id: $id) {\n    createdAt\n    id\n    legacyResourceId\n    note\n    order { id }\n    processedAt\n    return { id }\n    staffMember { id }\n    totalRefunded {\n      amount\n      currencyCode\n    }\n    updatedAt\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10