Purchase museum tickets for general entry or special events.
Security
MuseumPlaceholderAuth
Request payload used for purchasing museum tickets.
Type of ticket being purchased. Use general for regular museum entry and event for tickets to special events.
Enum:"event""general"
Example:"event"
Unique identifier for a special event. Required if purchasing tickets for the museum's special events.
Example:"3be6453c-03eb-4357-ae5a-984a0e574a54"
Email address for ticket purchaser.
Example:"museum-lover@example.com"
- Mock serverhttps://redocly.com/_mock/demo/openapi/museum-api/tickets
- https://api.fake-museum-example.com/v1.1https://api.fake-museum-example.com/v1.1/tickets
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"
}'Created.
Details for a museum ticket after a successful purchase.
Confirmation message after a ticket purchase.
Example:"Museum general entry ticket purchased"
Unique identifier for museum ticket. Generated when purchased.
Example:"a54a57ca-36f8-421b-a6b4-2e8f26858a4c"
Type of ticket being purchased. Use general for regular museum entry and event for tickets to special events.
Enum:"event""general"
Example:"event"
Response
{ "message": "Museum general entry ticket purchased", "ticketId": "382c0820-0530-4f4b-99af-13811ad0f17a", "ticketType": "general", "ticketDate": "2023-09-07", "confirmationCode": "ticket-general-e5e5c6-dce78" }