API

Sections

Theme switcher

/bookings/{booking_id}/tickets

This endpoint can be used to retrieve the ticket that must be passed along to the customer.

For details about how this endpoint fits into the flow, check the Booking Confirmation step and Ticket Types guide.

Header Parameters

api-keystring Required

Set your API key. To request a demo API key please reach out to us at partner@distribusion.com. Reference value: ZW8FXhnBl53yTkrMvoqLp4Xq7mf9nEBGsxpTWrid.

Query Parameters

typestring Required

Set the type of document. Document types available: pdf, html, pkpass, qr-code-png, image, google-wallet. Default set to pdf if the field is not used. Reference value: pdf.

Path Parameters

booking_idstring Required

Set the ID of the booking to be checked. Use the value retrieved from the /reservations/{reservation_id} or /bookings/create response. Reference value: 8qbBSBst2XH39afW2WzAfQ.

Response

200 (pdf)
Object
Successful response with pdf ticket
200 (Google Wallet)
Object
Successful response with Google Wallet ticket

Response Attributes

dataobject

Show child attributes

jsonapiobject

Show child attributes

200 (PKPASS)
Object
Successful response with PKPASS ticket

Response Attributes

dataarray

Show child attributes

jsonapiobject

Show child attributes

200 (QR Code)
Object
Successful response with QR Code ticket

Response Attributes

dataarray

Show child attributes

jsonapiobject

Show child attributes

200 (HTML)
Object
Successful response with HTML ticket
500 (no PKPASS available)
Object
Error response: no PKPASS ticket available (and other cases)

Response Attributes

errorsarray

Show child attributes

jsonapiobject

Show child attributes

Was this section helpful?

What made this section unhelpful for you?

GET

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?

View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot