Update status to "Paid" for one or more reservations of a hotel
Request to update the status to "Paid" for one or more reservations of a specific hotel.
PUT https://[base_url]/v1/bookings/change-status/?hotel_id={hotel_id}
Example:
PUT https://[base_url]/v1/bookings/change-status/?hotel_id=11111
Body
Request using the PUT method
{
"bookings": [
"4104364813",
"24321798102",
"83780300",
"24432500702",
"67855547",
"70018886"
]
}
Query parameters
| PARAMETER | TYPE | REQ. | DESCRIPTION |
|---|---|---|---|
| hotel_id | Integer | Yes | Integer representing the unique identifier of the hotel in Roomcloud |
Endpoint response
Status code: 200
{
"msg": "Proceso concluido satisfactoriamente",
"aditional_info": {
"total": 6,
"applied": 5,
"failed": 1,
"failed_bookings": [
"4104364813”
]
}
}
Status code: 401, 403, 404
{
"code": "Status code",
"message":"Error description",
"detail": "Error details"
}