Skip to main content
POST
/
reservations
Nieuwe Reservering
curl --request POST \
  --url https://api.bonresto.nl/reservations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_name": "Bas de Groot",
  "date": "2024-12-25",
  "time": "19:00",
  "guests": 4,
  "email": "[email protected]"
}
'
{
  "id": "res_98765",
  "customer_name": "Bas de Groot",
  "date": "2024-12-25",
  "guests": 4
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
customer_name
string
required
Example:

"Bas de Groot"

date
string
required
Example:

"2024-12-25"

time
string
required
Example:

"19:00"

guests
integer
required
Example:

4

email
string

Response

201 - application/json

Reservering aangemaakt

id
string
Example:

"res_98765"

customer_name
string
Example:

"Bas de Groot"

date
string<date>
Example:

"2024-12-25"

guests
integer
Example:

4