Skip to content

Buy museum tickets

Request

Purchase museum tickets for general entry or special events.

Security
MuseumPlaceholderAuth
Bodyapplication/jsonrequired
ticketTypestring(TicketType)required

Type of ticket being purchased. Use general for regular museum entry and event for tickets to special events.

Enum:"event""general"
Example:"event"
eventIdstring, (uuid)(EventId)

Unique identifier for a special event. Required if purchasing tickets for the museum's special events.

Example:"3be6453c-03eb-4357-ae5a-984a0e574a54"
ticketDatestring, (date)(Date)required

Date that the ticket is valid for.

Example:"2023-10-29"
emailstring, (email)(Email)required

Email address for ticket purchaser.

Example:"museum-lover@example.com"
phonestring(Phone)

Phone number for the ticket purchaser (optional).

Example:"+1(234)-567-8910"
curl -i -X POST \
  -u '<username>:<password>' \
  https://redocly.com/_mock/demo/openapi/museum-api/tickets \
  -H 'Content-Type: application/json' \
  -d '{
    "ticketType": "general",
    "ticketDate": "2023-09-07",
    "email": "todd@example.com"
  }'

Responses

Created.

Bodyapplication/json
messagestring(TicketMessage)required

Confirmation message after a ticket purchase.

Example:"Museum general entry ticket purchased"
eventNamestring(EventName)

Name of the special event.

Example:"Pirate Coding Workshop"
ticketIdstring, (uuid)(TicketId)required

Unique identifier for museum ticket. Generated when purchased.

Example:"a54a57ca-36f8-421b-a6b4-2e8f26858a4c"
ticketTypestring(TicketType)required

Type of ticket being purchased. Use general for regular museum entry and event for tickets to special events.

Enum:"event""general"
Example:"event"
ticketDatestring, (date)(Date)required

Date the ticket is valid for.

Example:"2023-10-29"
confirmationCodestring(TicketConfirmation)required

Unique confirmation code used to verify ticket purchase.

Example:"ticket-event-a98c8f-7eb12"
Response
{ "message": "Museum general entry ticket purchased", "ticketId": "382c0820-0530-4f4b-99af-13811ad0f17a", "ticketType": "general", "ticketDate": "2023-09-07", "confirmationCode": "ticket-general-e5e5c6-dce78" }