v1

latestSwagger 2.02026-07-141993129.2 KB
Bookings

Partially updates a reservation.

The hetras API is using this <a href="https://developer.hetras.com/docs/patch" onfocus="this.blur()" target="_blank">Patch Specification</a> to partially update an existing resource. Currently this call allows to update the following fields: external_id, market_code, channel_code, subchannel_code, guarantee_type, comment, addon_services, labels, guests, contact and company. <br /><br /> A request example:<br /><pre> [ { "op": "replace", "path": "/addon_services", "value": ["BREAKFAST", "PARKING"] }, { "op": "add", "path": "/labels/-", "value": "MOBILE" }, { "op": "replace", "path": "/guests/SHOW-1234", "value": { "customer_id": "SHOW-1234", "primary": false } }, { "op": "add", "path": "/guests/-", "value": { "customer_id": "SHOW-5678", "primary": true } } ] </pre><br /> For more details on how the API responds to errors please check our documentation on <a href="https://developer.hetras.com/docs/errors/" onfocus="this.blur()">Error Handling</a>.

patch/api/booking/v0/bookings/{confirmationId}/reservations/{reservationNumber}

Path parameters

confirmationIdstring required

The confirmation id for the booking the reservation was made.

reservationNumberinteger required

Specifies the reservation number for the reservation that has to be updated.

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Request body

fromstring
opstring
pathstring
valueObject

Response

The update was successful. Reponse would contain a referer to the updated reservation.

Object required