Fumadocs

Buy museum tickets

Purchase museum tickets for general entry or special events.

POST
/tickets
Server
/tickets

The Authorization access token

Authorization

Authorization
Required
Basic <token>

In: header

Request Body

application/jsonRequired

emailstring

Email address for ticket purchaser.

Format: "email"

ticketIdstring

Unique identifier for museum ticket. Generated when purchased.

Format: "uuid"

ticketDate
Required
string

Date when this ticket can be used for museum entry.

Format: "date"

ticketType
Required
string

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

Value in: "event" | "general"

eventIdstring

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

Format: "uuid"
curl -X POST "https://redocly.com/_mock/docs/openapi/museum-api/tickets" \
  -H "Authorization: Basic <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "museum-lover@example.com",
    "ticketId": "a54a57ca-36f8-421b-a6b4-2e8f26858a4c",
    "ticketDate": "2023-10-29",
    "ticketType": "event",
    "eventId": "3be6453c-03eb-4357-ae5a-984a0e574a54"
  }'

Created.

{
  "ticketId": "a54a57ca-36f8-421b-a6b4-2e8f26858a4c",
  "ticketDate": "2023-10-29",
  "ticketType": "event",
  "eventId": "3be6453c-03eb-4357-ae5a-984a0e574a54",
  "message": "Museum general entry ticket purchased",
  "confirmationCode": "ticket-event-a98c8f-7eb12"
}