TanqoryDocs

tanqoryExtStoreCreditExpireNow

  • Mutation
  • Customers and B2B

Expires what a credit still holds now: an expiry row with the staff member and the reason takes it off the balance. A line goes on the owner's timeline. Staff only. DISABLED, NOT_ALLOWED, NOT_FOUND, REASON_REQUIRED, NOTHING_LEFT. Requires write_store_credit_account_transactions access scope.

Arguments

ArgumentTypeRequiredDefault
creditTransactionIdID!Required
reasonString!Required

Returns

TanqoryExtStoreCreditExpireNowPayload

FieldTypeDescription
expirationTransactionStoreCreditAccountExpirationTransaction

The expiry posted now.

userErrors[TanqoryExtStoreCreditToolUserError!]!

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 TanqoryExtStoreCreditExpireNow($creditTransactionId: ID!, $reason: String!) {\n  tanqoryExtStoreCreditExpireNow(creditTransactionId: $creditTransactionId, reason: $reason) {\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"creditTransactionId":"gid://tanqory/Type/id","reason":""}}'

Built from commit 0cac88ece6de · API version 2026-10