Tiquo
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-ticket

Authentication

Requires a valid JWT access token.

Authorization: Bearer eyJhbGciOiJSUzI1NiJ9...

Query Parameters

ParameterTypeRequiredDescription
bookingIdstringYesBooking document ID

Example Request

curl -L "https://edge.tiquo.app/api/client/v1/booking-ticket?bookingId=booking_123" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9..." \
  -o ticket.pdf

Response

Returns a PDF file.

HeaderDescription
Content-Typeapplication/pdf
Content-DispositionAttachment filename for the ticket

Errors

StatusDescription
400Missing bookingId
401Invalid or expired access token
403Ticketing is not enabled, or the booking does not belong to the authenticated customer
500Internal 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);
}

En esta página