TanqoryDocs

tanqoryExtOrderWithdrawal

  • Mutation
  • Storefront

EU online withdrawal (A-16; Dir. 2011/83/EU Art. 11a): the buyer, with the order's status link (orderId + key), declares withdrawal from the given lines. Recorded once per line; the receipt goes to receiptEmail and the store is told. Private token only.

Arguments

ArgumentTypeRequiredDefault
orderIdID!Required
keyString!Required
consumerNameString!Required
receiptEmailString!Required
lineItemIds[ID!]!Required

Returns

TanqoryExtOrderWithdrawalPayload!

FieldTypeDescription
withdrawalTanqoryExtOrderWithdrawal
alreadyReceivedBoolean

True when every given line was already withdrawn from: the earlier declaration is answered, nothing is sent.

userErrors[CustomerUserError!]!

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
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":"mutation TanqoryExtOrderWithdrawal($orderId: ID!, $key: String!, $consumerName: String!, $receiptEmail: String!, $lineItemIds: [ID!]!) {\n  tanqoryExtOrderWithdrawal(orderId: $orderId, key: $key, consumerName: $consumerName, receiptEmail: $receiptEmail, lineItemIds: $lineItemIds) {\n    withdrawal { id }\n    alreadyReceived\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"orderId":"gid://tanqory/Type/id","key":"","consumerName":"","receiptEmail":"","lineItemIds":[]}}'

Built from commit c0b3fb3fdef7 · API version 2026-10