API and AuthenticationClient API
Download Booking Ticket
Download a QR-code ticket PDF for an authenticated customer's booking
Download Booking Ticket
Downloads a QR-code ticket PDF for a booking owned by the authenticated customer.
Use this endpoint only when the booking returned from List Bookings has ticketing.qrCodeTicketsEnabled set to true.
Endpoint
GET /booking-ticketAuthentication
Requires a valid JWT access token.
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9...Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
bookingId | string | Yes | Booking document ID |
Example Request
curl -L "https://edge.tiquo.app/api/client/v1/booking-ticket?bookingId=booking_123" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9..." \
-o ticket.pdfResponse
Returns a PDF file.
| Header | Description |
|---|---|
Content-Type | application/pdf |
Content-Disposition | Attachment filename for the ticket |
Errors
| Status | Description |
|---|---|
400 | Missing bookingId |
401 | Invalid or expired access token |
403 | Ticketing is not enabled, or the booking does not belong to the authenticated customer |
500 | Internal server error |
DOM Package
The DOM Package exposes this endpoint as downloadBookingTicket().
const { bookings } = await auth.getUpcomingBookings();
const booking = bookings[0];
if (booking?.ticketing.qrCodeTicketsEnabled) {
const ticketPdf = await auth.downloadBookingTicket(booking.id);
}