Skip to main content
POST
/
api
/
bookings
/
anonymous
Book seats for an anonymous user
curl --request POST \
  --url https://tandem.hlofiys.xyz/api/bookings/anonymous \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "phone_number": "+375291234567",
  "event_id": 123,
  "seat_ids": [
    101,
    102
  ]
}
'
[
  {
    "booking_id": 123,
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "event_id": 123,
    "seat_id": 123,
    "is_paid": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Body

application/json
email
string<email>
required

The user's email address. An account will be created if it doesn't exist.

phone_number
string
required

The user's phone number, preferably in international E.164 format.

Example:

"+375291234567"

event_id
integer<int64>
required

The unique identifier for the event.

seat_ids
integer<int64>[]
required

An array of unique identifiers for the seats to be booked.

Example:
[101, 102]

Response

Booking successful. An account has been created and an activation link has been sent to the provided email.

booking_id
integer<int64>
required
user_id
string<uuid>
required
event_id
integer<int64>
required
seat_id
integer<int64>
required
is_paid
boolean
required

Indicates whether the booking has been paid for. false for initial reservation

created_at
string<date-time>
required
updated_at
string<date-time>
required