| Requires any of the roles: | Admin, TenantAdmin, Receptionist |
| GET | /reservation/guestinfo | Gets guest personal data as provided by guests. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ReservationId | form | string | Yes | Reservation Id (GUID) |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | List<ReservationGuestInfoDto> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GuestFirstName | form | string | No | |
| GuestLastName | form | string | No | |
| Country | form | string | No | |
| DateOfBirth | form | DateTime | No | |
| DocumentType | form | IdDocumentType | No | |
| DocumentNumber | form | string | No | |
| Gender | form | Gender | No | |
| Timestamp | form | DateTime | No | |
| form | string | No |
| Name | Value |
|---|---|
| ObmejnaPrepustnica | 1 |
| PotneListinePoMednarodniPogodbi | 2 |
| OsebnaIzkaznica | 3 |
| OrozniList | 4 |
| PotniList | 5 |
| UpravneListine | 6 |
| VozniskoDovoljenje | 7 |
| Name | Value |
|---|---|
| Male | 1 |
| Female | 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 /reservation/guestinfo HTTP/1.1 Host: api.4spaces.io Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
data:
[
{
guestFirstName: String,
guestLastName: String,
country: String,
dateOfBirth: -62135596800000,
documentType: 1,
documentNumber: String,
gender: 1,
timestamp: -62135596800000,
email: String
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}