Generate a receipt document for an order
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
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.
Example response
{
"data": {
"type": "json"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.