Buy museum tickets
POST/tickets
Purchase museum tickets for general entry or special events.
Request
- application/json
Body
required
Possible values: [event
, general
]
Type of ticket being purchased. Use general
for regular museum entry and event
for tickets to special events.
Identifier for a special event.
Date that the ticket is valid for.
Email address for ticket purchaser.
Phone number for the ticket purchaser (optional).
Responses
- 200
- 400
- 404
Success
- application/json
- Schema
- Example (from schema)
- general_entry
- event_entry
Schema
Confirmation message after a ticket purchase.
Name of the special event
Unique identifier for museum ticket. Generated when purchased.
Possible values: [event
, general
]
Type of ticket being purchased. Use general
for regular museum entry and event
for tickets to special events.
Date the ticket is valid for.
Unique confirmation code used to verify ticket purchase.
{
"message": "Museum general entry ticket purchased",
"eventName": "Pirate Coding Workshop",
"ticketId": "a54a57ca-36f8-421b-a6b4-2e8f26858a4c",
"ticketType": "event",
"ticketDate": "2023-10-29",
"confirmationCode": "ticket-event-a98c8f-7eb12"
}
General entry ticket
{
"message": "Museum general entry ticket purchased",
"ticketId": "382c0820-0530-4f4b-99af-13811ad0f17a",
"ticketType": "general",
"ticketDate": "2023-09-07",
"confirmationCode": "ticket-general-e5e5c6-dce78"
}
Special event ticket
{
"message": "Museum special event ticket purchased",
"ticketId": "b811f723-17b2-44f7-8952-24b03e43d8a9",
"eventName": "Mermaid Treasure Identification and Analysis",
"ticketType": "event",
"ticketDate": "2023-09-05",
"confirmationCode": "ticket-event-9c55eg-8v82a"
}
Bad request
Not found