Update Travellers
Introduction
Update Travellers API is used to update the travellers for a booking. The API accepts the booking id,the traveller details as input. The API will return the updated traveller details if the update is successful.
Update Travellers API Request- Sample JSON
Below textbox provides a sample of the request from REST Tool:
{
"tracking_id": "111727331133261938JDSF",
"member_id": "1",
"save_pax": "no",
"passenger": [
{
"pax_id": "2",
"room_number": "1",
"pax_type": "ADT",
"title": "MR",
"first_name": "Saim",
"last_name": "doe",
"age": "25",
"isd_code": "+971",
"contact_no": "9716555966",
"email_address": "[email protected]"
},
{
"pax_id": "1",
"room_number": "1",
"pax_type": "CNN",
"title": "MR",
"first_name": "John",
"last_name": "doe",
"age": "5",
"isd_code": "+971",
"contact_no": "9716555967",
"email_address": "[email protected]"
},
{
"pax_id": "3",
"room_number": "1",
"pax_type": "INF",
"title": "MR",
"first_name": "John",
"last_name": "doe",
"age": "1",
"isd_code": "+971",
"contact_no": "9716555967",
"email_address": "[email protected]"
}
]
}
Update Travellers API Response- Sample JSON
Below textbox provides a sample of the request from REST Tool:
{
"status": "success",
"reason": "Passenger data has been successfully updated.",
"tracking_id": "111727331133261938JDSF",
"total_guest": 1,
"data": [
{
"tracking_id": "111727331133261938JDSF",
"pax_id": "1",
"pax_type": "ADT",
"gender": null,
"title": "MR",
"first_name": "John",
"last_name": "Doe",
"pax_age": "25",
"isd_code": "+971",
"contact_no": "97141234567",
"email_address": "[email protected]"
},
{
"tracking_id": "111727331133261938JDSF",
"pax_id": "2",
"pax_type": "CNN",
"gender": null,
"title": "MR",
"first_name": "Samir",
"last_name": "Doe",
"pax_age": "25",
"isd_code": "+971",
"contact_no": "97141234568",
"email_address": "[email protected]"
},
{
"tracking_id": "111727331133261938JDSF",
"pax_id": "1",
"pax_type": "INF",
"gender": null,
"title": "MR",
"first_name": "King",
"last_name": "Doe",
"pax_age": "1",
"isd_code": "+971",
"contact_no": "971412345741",
"email_address": "[email protected]"
}
]
}
|
API Method : POST URL:{{base_url}}/hotel/update-travellers |
||
|---|---|---|
| Property | Value | Description |
| tracking_id | 11172733056126193VRMAK | The tracking_id copied from Price $ poliocy Validation |
| member_id | 1 | A unique identifier assigned to a specific member in the system |
| save_pax | no | If you want to save yes or no |
| passenger[0].pax_id | 1 | Id of the guest. |
| passenger[0].room_number | 1 (required) | Room number assigned to the guest. |
| passenger[0].pax_type | ADT" (required) | Passenger type: ADT for adult. |
| passenger[0].title | MR (required) | Title of the guest. |
| passenger[0].first_name | John (required) | First name of the guest. |
| passenger[0].last_name | Doe (required) | Last name of the guest. |
| passenger[0].age | 25 (required) | Age of the guest. |
| passenger[0].isd_code | +971 | International dialing code of the guest's contact number. |
| passenger[0].contact_no | 97114134567 | Contact number of the guest. |
| passenger[0].email_address | [email protected] | Email address of the guest. |
| passenger[1].pax_id | 2 (required) | Id of the second guest. |
| passenger[1].room_number | 1 (required) | Room number assigned to the second guest. |
| passenger[1].pax_type | CNN (required) | Passenger type: CNN for child. |
| passenger[1].title | MR (required) | Title of the second guest. |
| passenger[1].first_name | RAFI (required) | First name of the second guest. |
| passenger[1].last_name | Doe (required) | Last name of the second guest. |
| passenger[1].age | 5 (required) | Age of the second guest. |
| passenger[1].isd_code | UAE | International dialing code of the second guest's contact number. |
| passenger[1].contact_no | 97141234565 | Contact number of the second guest. |
| passenger[1].email_address | [email protected] | Email address of the second guest. |
| passenger[2].pax_id | 3 (required) | Id of the third guest. |
| passenger[2].room_number | 1 (required) | Room number assigned to the third guest. |
| passenger[2].pax_type | INF (required) | Passenger type: INF for infant. |
| passenger[2].title | MR (required) | Title of the third guest. |
| passenger[2].first_name | KING (required) | First name of the third guest. |
| passenger[2].last_name | Doe (required) | Last name of the third guest. |
| passenger[2].age | 1 (required) | Age of the third guest. |
| passenger[2].isd_code | +971 | International dialing code of the third guest's contact number. |
| passenger[2].contact_no | 97141234561 | Contact number of the third guest. |
| passenger[2].email_address | [email protected] | Email address of the third guest. |
| Update Travellers – Response | ||
|---|---|---|
| Property | Value | Description |
| status | success | An indicator that reflects the current state or condition of a request, operation, or resource, such as "failed," or "success. |
| reason | Passenger data has been successfully updated. | The reason for the success or failure of the request |
| tracking_id | 111727331133261938JDSF | A unique identifier used to track the status or progress of a specific room data |
| total_guest | 3 | The total number of guests in the booking |
| data[].passenger[0].pax_id | 1 | Id of the guest. |
| data[].passenger[0].room_number | 1 | Room number assigned to the guest. |
| data[].passenger[0].pax_type | ADT | Passenger type: ADT for adult. |
| data[].passenger[0].title | MR | Title of the guest. |
| data[].passenger[0].first_name | Jhon | First name of the guest. |
| data[].passenger[0].last_name | Doe | Last name of the guest. |
| data[].passenger[0].age | 25 | Age of the guest. |
| data[].passenger[0].isd_code | 971 | International dialing code of the guest's contact number. |
| data[].passenger[0].contact_no | 9716330000 | Contact number of the guest. |
| data[].passenger[0].email_address | [email protected] | Email address of the guest. |
| data[].passenger[1].pax_id | 2 | Id of the second guest. |
| data[].passenger[1].room_number | 1 | Room number assigned to the second guest. |
| data[].passenger[1].pax_type | CNN | Passenger type: CNN for child. |
| data[].passenger[1].title | MR | Title of the second guest. |
| data[].passenger[1].first_name | RAFI | First name of the second guest. |
| data[].passenger[1].last_name | Doe | Last name of the second guest. |
| data[].passenger[1].age | 5 | Age of the second guest. |
| data[].passenger[1].isd_code | 971 | International dialing code of the second guest's contact number. |
| data[].passenger[1].contact_no | 9716330000 | Contact number of the second guest. |
| data[].passenger[1].email_address | [email protected] | Email address of the second guest. |
| data[].pax_id | 3 | Id of the third guest. |
| data[].room_number | 1 | Room number assigned to the third guest. |
| data[].pax_type | INF | Passenger type: INF for infant. |
| data[].title | MR | Title of the third guest. |
| data[].first_name | AYHMAN | First name of the third guest. |
| data[].last_name | Doe | Last name of the third guest. |
| data[].age | 1 | Age of the third guest. |
| data[].isd_code | 971 | International dialing code of the third guest's contact number. |
| data[].contact_no | 97166330000 | Contact number of the third guest. |
| data[].email_address | [email protected] | Email address of the third guest. |