| Requires the role: | ReservationReader |
| GET | /client/reservation | Gets reservation data, including access codes, given the external reservation number. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ExternalReservationId | query | string | Yes | External reservation ID |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | ExternalReservationView | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| OrganizationId | form | Guid | No | |
| ReservationNumber | form | string | No | |
| State | form | ReservationState | No | |
| Guests | form | List<ExternalGuestView> | No | |
| VisitData | form | ReservationVisitDataDto | No |
| Name | Value |
|---|---|
| New | 0 |
| Assigned | 10 |
| WaitingForConfirmation | 15 |
| PendingActivation | 20 |
| Active | 30 |
| Expired | 40 |
| Denied | 50 |
| Cancelled | 60 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GuestFirstName | form | string | No | |
| GuestLastName | form | string | No | |
| form | string | No | ||
| Phone | form | string | No | |
| Iso3166alpha2Code | form | string | No | |
| AccessCodes | form | List<AccessCodeView> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Space | form | string | No | |
| AccessCode | form | string | No | |
| RoomNumber | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| VisitType | form | VisitType | No | |
| Checkin | form | DateTime? | No | |
| Checkout | form | DateTime? | No | |
| DoesNotContainTimeInfo | form | bool? | No |
| Name | Value |
|---|---|
| DateTime | 1 |
| AccessCount | 2 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /client/reservation HTTP/1.1 Host: api.4spaces.io Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
data:
{
id: 00000000000000000000000000000000,
organizationId: 00000000000000000000000000000000,
reservationNumber: String,
state: 0,
guests:
[
{
guestFirstName: String,
guestLastName: String,
email: String,
phone: String,
iso3166alpha2Code: String,
accessCodes:
[
{
space: String,
accessCode: String,
roomNumber: String
}
]
}
],
visitData:
{
visitType: 1,
checkin: -62135596800000,
checkout: -62135596800000,
doesNotContainTimeInfo: False
}
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}