Tickets
Museum tickets for general entrance or special events.
Demo Only
POST
/tickets
Buy museum tickets
Purchase museum tickets for general entry or special events.
Authorization
Authorization
RequiredBasic <token>
In: header
Request Body
ticketType
Requiredstring
Type of ticket being purchased. Use general
for regular museum entry and event
for tickets to special events.
"event"
Value in: "event" | "general"
eventId
string
Identifier for a special event.
Example:"3be6453c-03eb-4357-ae5a-984a0e574a54"
Format: "uuid"
ticketDate
Requiredstring
Date that the ticket is valid for.
Example:"2023-10-29"
Format: "date"
email
Requiredstring
Email address for ticket purchaser.
Example:"museum-lover@example.com"
Format: "email"
phone
string
Phone number for the ticket purchaser (optional).
Example:"+1(234)-567-8910"
Status code | Description |
---|---|
200 | Success |
400 | Bad request |
404 | Not found |
Details for a museum ticket after a successful purchase.
GET
/tickets/{ticketId}/qr
Get ticket QR code
Return an image of your ticket with scannable QR code. Used for event entry.
Authorization
Authorization
RequiredBasic <token>
In: header
Path Parameters
ticketId
Requiredstring
An identifier for a ticket to a museum event. Used to generate ticket image.
Example:"a54a57ca-36f8-421b-a6b4-2e8f26858a4c"
Format: "uuid"
Status code | Description |
---|---|
200 | Scannable event ticket in image format |
400 | Bad request |
404 | Not found |
An image of a ticket with a QR code used for museum or event entry.
Last updated on