TanqoryDocs

tanqoryExtCompanyOrderingStatusUpdate

  • Mutation
  • Customers and B2B

Approves or blocks ordering for a company. The buyers of a company whose ordering is NOT_APPROVED cannot check out on the storefront; staff can still create draft orders for it. A change is recorded on the company's timeline (Company.events); setting the status it already has changes nothing.

Arguments

ArgumentTypeRequiredDefault
companyIdID!Required
statusTanqoryExtCompanyOrderingStatus!Required

Returns

TanqoryExtCompanyOrderingStatusUpdatePayload

FieldTypeDescription
companyCompany
userErrors[BusinessCustomerUserError!]!

RESOURCE_NOT_FOUND at ["companyId"] for an unknown company or one of another store.

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 TanqoryExtCompanyOrderingStatusUpdate($companyId: ID!, $status: TanqoryExtCompanyOrderingStatus!) {\n  tanqoryExtCompanyOrderingStatusUpdate(companyId: $companyId, status: $status) {\n    company { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"companyId":"gid://tanqory/Type/id","status":"APPROVED"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10