TanqoryDocs

tanqoryExtStoreCreditExpiryUpdate

  • Mutation
  • Customers and B2B

Changes the expiry date of what a credit still holds (expiresAt null: no expiry). Written to the ledger as a debit of that amount and a credit of the same amount with the new date, both with the staff member and the reason; the balance does not change. A line goes on the owner's timeline. Staff only. DISABLED, NOT_ALLOWED, NOT_FOUND, REASON_REQUIRED, EXPIRES_AT_IN_PAST, NOTHING_LEFT, NO_CHANGE. Requires write_store_credit_account_transactions access scope.

Arguments

ArgumentTypeRequiredDefault
creditTransactionIdID!Required
expiresAtDateTimeOptional
reasonString!Required

Returns

TanqoryExtStoreCreditExpiryUpdatePayload

FieldTypeDescription
creditTransactionStoreCreditAccountCreditTransaction

The credit that now holds the money, with the new expiry date.

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 TanqoryExtStoreCreditExpiryUpdate($creditTransactionId: ID!, $reason: String!) {\n  tanqoryExtStoreCreditExpiryUpdate(creditTransactionId: $creditTransactionId, reason: $reason) {\n    creditTransaction { id }\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