---
title: "Print POS receipt"
method: POST
path: "/shop/orders/{orderId}/print-pos-receipt"
tags: ["Orders"]
---

# Print POS receipt

`POST /shop/orders/{orderId}/print-pos-receipt`

Use this endpoint to print a summary of the given order to an Esc/Pos printer connected to Trybe via a [`EscPosConnector`](/endpoints/shop/esc-pos-connectors/#createEscPosConnector).

## Request body

- object
  - `esc_pos_connector_id` string, uuid, required — Identifier of the [`EscPosConnector`](/endpoints/EscPosConnectors) (receipt printer) to send the rendered receipt to. The connector must belong to the same site as the order.
  - `guest_input_fields` object — The fields to include on the receipt for the guest to fill out.
    - `name` boolean — Whether to include a space for the guest to write their name on the receipt. If `true`, the field will be included on the printed receipt.
    - `signature` boolean — Whether to include a space for the guest to sign on the receipt. If `true`, the field will be included on the printed receipt.
    - `room_number` boolean — Whether to include a space for the guest to write their room number on the receipt. If `true`, the field will be included on the printed receipt.
    - `gratuity` boolean — Whether to include a space for the guest to write a gratuity amount on the receipt. If `true`, the field will be included on the printed receipt.

## Response `200`

Response schema for printing a POS receipt for an order

- object
  - `message` string, required — A message confirming that the receipt was printed successfully.
  - `preview` string, nullable, required — An HTML string of the reciept preview if the `preview` field was set to `true` in the request body. Only available for internal users, will always be `null` otherwise.

## Other responses

- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
