Русский
cURL
curl --request POST \ --url http://dev-backend-1.guestme.space/api/v1/external/restaurant/{id}/confirmation/code/request \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "phone": "+79998887766" } '
{ "timeLeft": 120 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Restaurant ID
Phone number
1
"+79998887766"
OK
Time left in seconds
120