TanqoryDocs

tanqoryExtCompanyLocationTaxExemptionExpirySet

  • Mutation
  • Customers and B2B

Sets or clears the expiry dates of a company location's tax exemption certificates. Each exemption must be one the location holds (CompanyLocation.taxExemptions); expiresOn: null clears its date. Revoking an exemption also clears its date. Refused with INVALID while the staff switch b2b_exemption_dates is off.

Arguments

ArgumentTypeRequiredDefault
companyLocationIdID!Required
expiries[TanqoryExtTaxExemptionExpiryInput!]!Required

Returns

TanqoryExtCompanyLocationTaxExemptionExpirySetPayload

FieldTypeDescription
companyLocationCompanyLocation
userErrors[BusinessCustomerUserError!]!

RESOURCE_NOT_FOUND at ["companyLocationId"]; INVALID_INPUT at ["expiries", i, "exemption"] for an exemption the location does not hold; INVALID while the switch is off.

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 TanqoryExtCompanyLocationTaxExemptionExpirySet($companyLocationId: ID!, $expiries: [TanqoryExtTaxExemptionExpiryInput!]!) {\n  tanqoryExtCompanyLocationTaxExemptionExpirySet(companyLocationId: $companyLocationId, expiries: $expiries) {\n    companyLocation { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"companyLocationId":"gid://tanqory/Type/id","expiries":[]}}'

Built from commit 0cac88ece6de · API version 2026-10