POST
/
api
/
v1
/
external
/
restaurant
/
{id}
/
booking
Request a booking for a restaurant
curl --request POST \
  --url http://dev-backend-1.guestme.space/api/v1/external/restaurant/{id}/booking \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "firstName": "Mike",
  "lastName": "Kravec",
  "date": "2025-01-01T00:00:00Z",
  "phone": "+79994656464",
  "persons": 2,
  "comment": "<string>",
  "meta": {
    "promo": "<string>"
  }
}'
{
  "id": 1001,
  "persons": 2,
  "firstName": "Mike",
  "lastName": "Kravec",
  "phone": "+79994656464",
  "comment": "<string>",
  "state": "ACCEPTED",
  "date": "2025-01-01T00:00:00Z",
  "meta": {
    "promo": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Restaurant ID

Body

application/json

Response

200 - */*

OK

The response is of type object.