Ale dirèkteman nan kontni an

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

FieldTypeRequiredDescription
documentobjectyesAn A8 receipt document (protocol/schemas/receipt-document.json)
profilestringPrinter profile, default generic-80mm
paper"58mm" | "80mm"
footerbooleanAdd the free plan's "Printed with JodaPrint" line

Responses

StatusDescription
201
curl -X POST "https://api.jodaprint.dev/v1/receipt/preview" \
-H "Authorization: Bearer $JODAPRINT_API_KEY" \
-H "Content-Type: application/json"