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

# Receipts

> Download a legal receipt PDF for any order.

The receipts endpoint generates a legal receipt for an order across any product
(letter, telegram, e-mail or WhatsApp).

## Endpoint

| Method | Path                   | Description               |
| ------ | ---------------------- | ------------------------- |
| `GET`  | `/api/receipts/v1/get` | Download an order receipt |

Full request/response details live in the **API Reference** tab.

## Usage

```bash theme={null}
curl "https://app.escrybe.com.br/api/receipts/v1/get?order_id=2607031" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -o receipt.pdf
```

* `order_id` — the order's visual id (required): numeric for letters and
  telegrams (e.g. `2607031`), `E`-prefixed for registered e-mails (e.g.
  `E2607031`), or the WhatsApp visual id.
* `type` — `letter`, `telegram`, `email` or `whatsapp`. Auto-detected when
  omitted.
* `format=html` — preview the receipt as HTML instead of downloading a PDF
  (letter, telegram and e-mail receipts only; WhatsApp always returns the
  expert-report PDF).

<Note>
  A successful response is the binary PDF (or HTML). Error responses use the
  standard JSON envelope `{"status", "status_message", "data"}` — a `403`
  means the order does not belong to your account.
</Note>
