SmartGare
API referenceEndpoints

Preview a sale's tickets

Returns, in Base64, the PDF the station bridge makes of the paid sale's ticket document for the printer of the caller's counter — the same layout a print sends, its QR a sample and its verification code masked — or of one ticket when `ticket` names it, with its page count and the template that drew it. Nothing is printed. **Required permission:** `ticketing.sale:read`

GET/ticketing/v1/sales/{id}/ticket-preview

Returns, in Base64, the PDF the station bridge makes of the paid sale's ticket document for the printer of the caller's counter — the same layout a print sends, its QR a sample and its verification code masked — or of one ticket when ticket names it, with its page count and the template that drew it. Nothing is printed.

Required permission: ticketing.sale:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Query Parameters

ticket?string

Response Body

*/*

*/*

curl -X GET "https://example.com/ticketing/v1/sales/string/ticket-preview"
{  "pages": 0,  "pdf": "string",  "template": {    "confirmed": true,    "name": "string",    "version": 0  }}