Create a new booking for an event.
Security
OAuth2(Required scopes: booking.write)
One of:
The customer making the booking.
A lowercase ISO 639-1 language code (e.g. "da"), optionally followed by a hyphen and an uppercase ISO 3166-1 country code (e.g. "en-US").
POST
- CompanyCustomer
- PrivateCustomer
curl -i -X POST \
https://api.understory.io/v1/bookings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"event_id": "string",
"customer": {
"customer_type": "PRIVATE",
"company_name": "string",
"vat_number": "string",
"email": "user@example.com",
"name": "string",
"phone": "string",
"address": {
"address_lines": [
"string"
],
"city": "string",
"zip_code": "string",
"region": "string",
"country": "string"
}
},
"locale": "string",
"items": [
{
"type_id": "string",
"item_type": "VARIANT",
"quantity": 1
}
],
"metadata": {
"property1": "string",
"property2": "string"
}
}'Response
{ "id": "string", "status": "ACTIVE" }