TanqoryDocs

tanqoryExtShippingDocumentsPdf

  • Mutation
  • Orders and payments

The same documents as tanqoryExtShippingDocumentsRender, as one ready PDF: each document looks exactly like its template (colours, table lines, images), laid out on paperSize (default LETTER), documentsPerPage documents to a sheet (1 or 2, default 1), with no browser header or footer. Answers a signed link to the file, valid for 15 minutes, and its name: shipping_documents_8_x_11.pdf (the paper) for several documents, packing_slip_1003_20261124T024902Z.pdf (kind, order number, UTC time) for one. Works only while the documents_pdf switch is on (tanqoryExtShippingDocumentsPdfEnabled); otherwise NOT_ALLOWED. Same userErrors as tanqoryExtShippingDocumentsRender, plus one with no code when the PDF cannot be made now.

Arguments

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

Returns

TanqoryExtShippingDocumentsPdfPayload

FieldTypeDescription
fileNameString

The PDF's file name.

urlString

A signed link to the PDF, valid for 15 minutes.

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

Built from commit 0cac88ece6de · API version 2026-10