TanqoryDocs

tanqoryExtCustomsDeclarationSave

  • Mutation
  • Inventory and fulfillment

Saves the customs declaration of a fulfillment order that still has items to ship, replacing any saved one. The next label bought for it (shippingLabelPurchase) and the order's commercial invoice declare these values; customs values given with the purchase itself still win for that purchase. NOT_FOUND, BLANK, TOO_LONG, INVALID, DUTIES_COLLECTED, FULFILLMENT_ORDER_CLOSED, NOT_ALLOWED.

Arguments

ArgumentTypeRequiredDefault
declarationTanqoryExtCustomsDeclarationInput!Required
fulfillmentOrderIdID!Required

Returns

TanqoryExtCustomsDeclarationPayload

FieldTypeDescription
customsDeclarationTanqoryExtCustomsDeclaration
userErrors[TanqoryExtCustomsDeclarationUserError!]!

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 TanqoryExtCustomsDeclarationSave($declaration: TanqoryExtCustomsDeclarationInput!, $fulfillmentOrderId: ID!) {\n  tanqoryExtCustomsDeclarationSave(declaration: $declaration, fulfillmentOrderId: $fulfillmentOrderId) {\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"declaration":{"contentsType":"DOCUMENTS","lines":[],"nonDeliveryOption":"ABANDON"},"fulfillmentOrderId":"gid://tanqory/Type/id"}}'

Built from commit 0cac88ece6de · API version 2026-10