---
title: "Generate a receipt document for an order"
method: GET
path: "/shop/orders/{orderId}/receipt"
tags: ["Orders"]
---

# Generate a receipt document for an order

`GET /shop/orders/{orderId}/receipt`

Generate a fiscal receipt document for the order. The document
is built from the order's non-deposit, non-redemption ledger
lines and rendered by the site's configured fiscal-receipt
generator. The actual document type depends on the site's
integration — most sites return a JSON resource describing the
receipt's contents, but a few PMS integrations return an HTML
document directly.

Pass an `Accept: text/html` request header to receive an HTML
body in the response when the generator produces one. Without
the header, callers always receive the structured JSON form.

Returns `404 Not Found` when the site doesn't have a fiscal
receipt integration configured.

## Response `200`

The generated receipt document. Either JSON (default) or
HTML when the site's integration produces it and the
request opted in via `Accept: text/html`.

- object
  - `data` OrderReceiptDocument, required — A fiscal receipt document generated from an order's ledger lines. Shape varies by integration; common fields are surfaced here and integration-specific extras come through under `processor_data`.
    - `type` string, required — The kind of document produced — typically `json` for structured payloads or `html` for HTML receipts. When `html`, the same body is also available as a `text/html` response when the caller opts in via `Accept`.
    - `content` object, nullable — The structured receipt body. Shape is determined by the site's fiscal-receipt integration; treat as opaque unless the integration is known. Always present for `json` documents.
    - `html` string, nullable — The HTML body of the receipt. Present when the document `type` is `html`.
    - `processor_data` object, nullable — Integration-specific metadata (signing certificates, sequence numbers, generated PDF URLs, etc.).

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `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)
