Skip to content

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 ​

ParameterTypeRequiredDescription
AuthorizationStringYesBearer <token> from Login

Path Parameters ​

ParameterTypeRequiredDescription
order_idStringYesProvider order id (Order.id returned by Create Order)

Response Parameters ​

ParameterTypeRequiredDescription
└ pdfStringYesBase64-encoded PDF document containing the issued ticket(s)

Response Example ​

json
{
  "pdf": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50..."
}

Error Code List ​

codemessageDescription
UNAUTHORIZEDInvalid tokenThe bearer token is missing, invalid, or expired (401).
NOT_FOUNDNo tickets for orderThe order has no issued tickets (not yet confirmed, canceled, or otherwise unavailable).

TTN Octo API documentation