Перейти к основному содержанию
GET
/
api
/
v1
/
external
/
booking
/
{id}
Get a booking by id
curl --request GET \
  --url http://dev-backend-1.guestme.space/api/v1/external/booking/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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

Booking ID

Response

200 - */*

OK

id
integer
required

Booking ID

Example:

1001

persons
integer
required

Number of persons

Example:

2

firstName
string
required

Guest first name

Example:

"Mike"

phone
string
required

Guest valid phone number

Example:

"+79994656464"

state
enum<string>
required

Booking state

Available options:
ACCEPTED,
DECLINED,
CANCELING,
CANCELED,
CREATED,
SENT,
CLOSED,
IN_PROGRESS,
PATCHING,
ERROR
Example:

"ACCEPTED"

date
string<date-time>
required

Booking ISO date

Example:

"2025-01-01T00:00:00Z"

lastName
string

Guest last name

Example:

"Kravec"

comment
string

Guest comment

meta
object

Booking meta

I