POST
/
api
/
v1
/
external
/
restaurant
/
{id}
/
confirmation
/
code
/
request
Request phone number confirmation code for restaurant's notification gateway
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
}

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.