Tickets

Buy museum tickets

Purchase museum tickets for general entry or special events.

POST
/tickets

Authorization

MuseumPlaceholderAuth

AuthorizationBasic <token>

In: header

Request Body

application/json

email?string

Email address for ticket purchaser.

Formatemail
ticketId?string

Unique identifier for museum ticket. Generated when purchased.

Formatuuid
ticketDate*string

Date when this ticket can be used for museum entry.

Formatdate
ticketType*string

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

Value in"event" | "general"
eventId?string

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

Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

curl -X POST "https://redocly.com/_mock/docs/openapi/museum-api/tickets" \  -H "Content-Type: application/json" \  -d '{    "ticketType": "general",    "ticketDate": "2023-09-07",    "email": "todd@example.com"  }'

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

{
  "type": "object",
  "title": "Validation failed"
}
{
  "type": "object",
  "title": "Validation failed"
}

Last updated on