TanqoryDocs

tanqoryExtShippingDocumentsRender

  • Mutation
  • Orders and payments

The printable HTML of the orders' shipping documents ("Print packing slips", "Print multiple documents"): for each order, each kind asked for (packing slip, invoice, pick list order), rendered from the store's default template of that kind (Settings > Shipping and delivery > Documents). Each document is one printed page. templateIds adds documents printed from those templates of the store (any of its documents, a Blank template included: the "Print multiple documents" dialog lists them all), after the kinds asked for, in the given order. collate (default true) keeps each order's documents together; false prints every document of one kind, then the next kind. BLANK (no order, or neither a kind nor a template), TOO_LONG (more than 50 orders, or more than 20 templates), NOT_FOUND (an order or a template of another store, or unknown).

Arguments

ArgumentTypeRequiredDefault
collateBooleanOptional
kinds[TanqoryExtShippingDocumentKind!]!Required
orderIds[ID!]!Required
templateIds[ID!]Optional

Returns

TanqoryExtShippingDocumentsRenderPayload

FieldTypeDescription
htmlString

A whole HTML page, ready to print.

userErrors[TanqoryExtCustomerUserError!]!

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 TanqoryExtShippingDocumentsRender($kinds: [TanqoryExtShippingDocumentKind!]!, $orderIds: [ID!]!) {\n  tanqoryExtShippingDocumentsRender(kinds: $kinds, orderIds: $orderIds) {\n    html\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"kinds":[],"orderIds":[]}}'

Built from commit c0b3fb3fdef7 · API version 2026-10