Ticket PDF
Returns the issued ticket(s) for a confirmed order as a base64-encoded PDF document. Idempotent retrieval — safe to re-fetch.
Endpoint
Method: GET
URL: /v1/order/{order_id}/ticket-pdf
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Bearer <token> from Login |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| order_id | String | Yes | Provider order id (Order.id returned by Create Order) |
Response Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| String | Yes | Base64-encoded PDF document containing the issued ticket(s) |
Response Example
json
{
"pdf": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50..."
}Error Code List
| code | message | Description |
|---|---|---|
| UNAUTHORIZED | Invalid token | The bearer token is missing, invalid, or expired (401). |
| NOT_FOUND | No tickets for order | The order has no issued tickets (not yet confirmed, canceled, or otherwise unavailable). |