> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PrintPurchaseOrderCommandRequestInput

> Prints the purchase order on a printer of the machine that runs the API. The call returns at once with an output job; read its state with GetOutputJob. Errors: errorCode is PURCHASE_ORDER_NOT_FOUND (no purchase order with this ID); errorCode is OUTPUT_TEMPLATE_SET_NOT_FOUND (no template set with this ID); errorCode is OUTPUT_TEMPLATE_SET_DOCUMENT_TYPE_MISMATCH (the template set belongs to another document type than this document); errorCode is OUTPUT_NO_MATCHING_TEMPLATE (the template set has no template for this document and the requested channel); errorCode is OUTPUT_PRINTER_REQUIRED (no printer is given and none is configured); errorCode is OUTPUT_PRINTER_NOT_FOUND (the printer is not installed on the machine that runs the API); errorCode is OUTPUT_PRINTER_NOT_AVAILABLE (the API runs where no printers exist, for example in the cloud). - Request



**Kind**: `input`

## Fields

**`purchaseOrderId`**: `ID!` (required)

The ID of the purchase order.

---

**`templateSetId`**: `ID`

The template set to output with. Defaults to the standard template set of the document type. The Wawi picks the template inside the set by its own rules (language, company, customer group and so on).

---

**`printer`**: `String`

The name of the printer, as returned by QueryOutputPrinters. Without it the printer of the template or of the user's workplace setup is used. If there is none, the call fails.

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

