Hotel API · Inventory (push / pull)
UpdateRooms() - Push
This function is dedicated to update the rooms price, availability, release date, minimum stay for a date range.
Request
https://{Endpoint_Url}/hotel/UpdateRooms?user={USER}&login={LOGIN}&password={PASSWORD}&cr_id={CR_ID}&room_code={ROOM_CODE}&start_date={START_DATE}&end_date={END_DATE}&availability={AVAILABILITY}&price={PRICE}&release={RELEASE}&min_stay={MIN_STAY}Response
| Root | Description | Values & Format | Tag |
|---|---|---|---|
| Endpoint_Url | endpoint url | String | Mandatory |
| login | String | Mandatory | |
| password | String | Mandatory | |
| user | Id of user on CYBERESA SYSTEM | Integer | Mandatory |
| cr_id | Id of hotel on CYBERESA SYSTEM | Integer | Mandatory |
| start_date | update room from date | dd/mm/yyyy | Mandatory |
| end_date | update room to date | dd/mm/yyyy | Mandatory |
| room_code | Id of rooms (separated by ;) | Integer | You can pass multiple rooms in one request by separating them with ; if room_code is null, it will update global price , and global available quantity and cancellation delay. |
| availability | available quantity of each room (separated by ;) | Integer | will not update availability if null, if you have multiple room codes, then please provide multiple availability in the correct order separated by ; |
| price | price of each room (separated by ;) | Decimal | will not update price if null, if you have multiple room codes, then please provide multiple price in the correct order separated by ; |
| cancellation_delay | cancellation delay of each room (separated by ;) | Integer | will not update cancellation delay if null, if you have multiple room codes, then please provide multiple cancellation delay in the correct order separated by ; |
| language | Cyberesa’s language ID to be used to return suitable messages | Integer | |
| release | Authorized delay to book before check-in | double | |
| min_stay | Minimal stay overnight | Integer |
{
"cr_id": ?,
"room_code": ?,
"start_date": "?",
"end_date": "?",
"status": "?",
"created_at": "?",
"error_id": null,
"error_message": null,
"Started": {
"GMT": "?",
"SERVER": "?",
"IP": "?",
"V": "?"
},
}| Root | Description | Values & Format | Tag |
|---|---|---|---|
| cr_id | Id of hotel on CYBERESA SYSTEM | Integer | Mandatory |
| room_code | Id of rooms | Integer | |
| start_date | update room from date | dd/mm/yyyy | Mandatory |
| end_date | update room to date | dd/mm/yyyy | Mandatory |
| status | succeeded or failed | String | Mandatory |
| created_at | date and time of operation | dd/mm/yyyy hh:mm:ss.000 | Mandatory |
| error_id | error message | String | 0 if status =”succeeded” |
| error_message | error message | String | null if status =”succeeded” |
| "Started": GMT | date and time of operation | dd/mm/yyyy hh:mm:ss.000 | |
| "Started": SERVER | date and time of operationdate and time of operation | dd/mm/yyyy hh:mm:ss.000 | |
| "Started": IP | IP address | String | |
| "Started": V | Version | String |