Русский
cURL
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>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Restaurant ID
OK
The response is of type object.
object