Receipt preview
Preview a receipt
POST /v1/receipt/preview
Scope: jobs:write
Renders an A8 receipt document to PNG exactly as the agent prints it on a thermal printer. Image URLs are not fetched: they show as a crossed box (inline base64 images render).
Request body
| Field | Type | Required | Description |
|---|---|---|---|
document | object | yes | An A8 receipt document (protocol/schemas/receipt-document.json) |
profile | string | Printer profile, default generic-80mm | |
paper | "58mm" | "80mm" | ||
footer | boolean | Add the free plan's "Printed with JodaPrint" line |
Responses
| Status | Description |
|---|---|
201 |
curl -X POST "https://api.jodaprint.dev/v1/receipt/preview" \
-H "Authorization: Bearer $JODAPRINT_API_KEY" \
-H "Content-Type: application/json"