Fumadocs

Buy museum tickets

Purchase museum tickets for general entry or special events.

POST
/tickets
/tickets

The Authorization access token

Authorization

Authorization
Required
Basic <token>

In: header

Request Body

multipart/form-dataRequired

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

Identifier for a special event.

Format: "uuid"

ticketDate
Required
string

Date that the ticket is valid for.

Format: "date"

email
Required
string

Email address for ticket purchaser.

Format: "email"

phonestring

Phone number for the ticket purchaser (optional).

imagefile

Format: "binary"

teststring

Value in: "general" | "gold" | "platinum" | "vip"
curl -X POST "https://redocly.com/_mock/docs/openapi/museum-api/tickets" \
  -H "Authorization: Basic <token>" \
  -F ticketType="event" \
  -F eventId="3be6453c-03eb-4357-ae5a-984a0e574a54" \
  -F ticketDate="2023-10-29" \
  -F email="museum-lover@example.com" \
  -F phone="+1(234)-567-8910" \
  -F image="string" \
  -F test="general"

Success

{
  "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"
}