Overview /
Operations /
Create a reservation
Create a reservation
post
https://api.flactrum.com/v1/reservations
Returns 409 when the table already has an active reservation overlapping the time range, or the time is in the past. If an e-mail is given, the guest receives a confirmation.
| Required scope | reservations.write |
| Panel screen | Operations → Reservations → New reservation |
| Success status | 201 |
Request body
| Field | Type | Description |
|---|---|---|
| branch_id * | string | Create only. A key bound to a branch may omit it. |
| dining_table_id | string|null | Optional; the table can be assigned later. Two active reservations on the same table may not overlap. |
| starts_at * | string | ISO 8601 with offset, e.g. 2026-10-03T19:30:00+03:00. |
| ends_at | string|null | Or send duration_minutes. Default: 2 hours after starts_at. |
| duration_minutes | integer|null | — |
| party_size * | integer | — |
| name * | string | — |
| phone | string|null | — |
| string|null | — | |
| note | string|null | — |
| customer_id | string|null | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/reservations' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"branch_id": "01m43mzgz4xbc46cbvbjdxsr6a",
"dining_table_id": "01m43mzgzgwbyffjkm643cj5b7",
"starts_at": "2026-10-05T19:30:00+03:00",
"duration_minutes": 120,
"party_size": 4,
"name": "Ayşe Demir",
"phone": "0532 111 22 33",
"email": "ayse@ornek.com",
"note": "Pencere kenarı"
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43mzgzxwxrt6zy8b1jr9y05",
"code": "RZV-00001",
"status": "booked",
"starts_at": "2026-10-05T16:30:00+00:00",
"ends_at": "2026-10-05T18:30:00+00:00",
"party_size": 4,
"name": "Ayşe Demir",
"phone": "0532 111 22 33",
"branch_id": "01m43mzgz4xbc46cbvbjdxsr6a",
"branch": {
"id": "01m43mzgz4xbc46cbvbjdxsr6a",
"name": "Nişantaşı"
},
"table": {
"id": "01m43mzgzgwbyffjkm643cj5b7",
"code": "S-1",
"name": "S-1"
},
"email": "ayse@ornek.com",
"note": "Pencere kenarı",
"customer_id": null,
"dining_session_id": null,
"seated_at": null,
"cancelled_at": null,
"cancel_reason": null,
"created_at": "2026-10-04T14:27:10+00:00",
"updated_at": "2026-10-04T14:27:10+00:00"
}
}