SmartGare
API referenceEndpoints

Print a sale's tickets at the counter's printer

Prints the paid sale's sold tickets not printed yet, one page each and at most 20 at a time, at the printer of the counter the caller is signed in at, through the station bridge's `ticket` template, and answers DELIVERED, NOT_DELIVERED with the bridge's reason, or OUTCOME_UNKNOWN, with the template the document was sent to be drawn with. A ticket delivered or unknown prints again only through a reprint. A body naming `ticket_ids` prints those of the sale's tickets alone, as a reissue prints the ticket it issued, whatever the sale's other tickets. **Required permission:** `ticketing.sale:write`

POST/ticketing/v1/sales/{id}/ticket-prints

Prints the paid sale's sold tickets not printed yet, one page each and at most 20 at a time, at the printer of the counter the caller is signed in at, through the station bridge's ticket template, and answers DELIVERED, NOT_DELIVERED with the bridge's reason, or OUTCOME_UNKNOWN, with the template the document was sent to be drawn with. A ticket delivered or unknown prints again only through a reprint. A body naming ticket_ids prints those of the sale's tickets alone, as a reissue prints the ticket it issued, whatever the sale's other tickets.

Required permission: ticketing.sale:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body?PrintSaleTicketsRequest

Response Body

*/*

*/*

*/*

curl -X POST "https://example.com/ticketing/v1/sales/string/ticket-prints" \  -H "Content-Type: application/json" \  -d '{}'
{  "outcome": "DELIVERED",  "printer_place": "string",  "reason": "string",  "template": {    "confirmed": true,    "name": "string",    "version": 0  },  "ticket_ids": [    "string"  ]}