Skip to main content

Update Reservation

Updates an existing reservation.

HTTP Request​

PUT https://dev.calry.app/api/v1/vrs/reservations

Headers​

HeaderValue
AuthorizationBearer YOUR_ACCESS_TOKEN
workspaceIdYOUR_WORKSPACE_ID
integrationAccountIdYOUR_INTEGRATION_ACCOUNT_ID

Example Request​

curl --location --request PUT 'https://dev.calry.app/api/v1/vrs/reservations' \
--header 'integrationAccountId: 73847ee7-33d9-441d-a87c-ed09d99a14a9' \
--header 'workspaceId: 2210620e-76d9-4b40-a11b-76d9fd3e6e1c' \
--header 'Authorization: Bearer eyJraWQiOiJzLTY1NWJlZGUyLTg1ZDAtNDc3Ny1hNmU0LTMzNzhhZDA1YWYzMyIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAvYXV0aCIsInVzZXJJZCI6IjhmZmMyZDhkLWQ3NzQtNGI3OS1iZjJiLWQ5MWJmNDMyYmZmMCIsIndvcmtzcGFjZUlkIjoiMjIxMDYyMGUtNzZkOS00YjQwLWExMWItNzZkOWZkM2U2ZTFjIiwibmFtZSI6InNhZnNkc2RmYSIsInNvdXJjZSI6Im1pY3Jvc2VydmljZSIsImlhdCI6MTcxMjM0NTMwOCwiZXhwIjoxMjkzMzQ2NjUyMH0.iZy1C3u46eqBWs5NvfItCOz8of-PFCt2CL6U_GJZTpNxInmGuLD4BjUyeKiiyOgLtPZgMSGurmocZPie5rqQF-gpvCgChIsn19ZmQGuTPYSN0iHEn8A9afL3yPatTLN2YdqiGU0PMk-XL1XW2drNxASAG0gDCbuz5hH18zclkHPPIIBPJmmhrkR76r0nmKFPjWNhxmEZXng1fHVi8ojx4ZA40WvV2MmOu95BueprZP645jsvWYfnl76cmmxXivTHKGDmiu-g0i8-JlYKUBLz6ZqiwgQv4DmluBXuI5bqPrkuwsiIZTT0ZQaWKLASENuH-lMbkECTCqHjRdJoHZSkag' \
--header 'Content-Type: application/json' \
--data '{
"reservationId": "53541199",
"arrivalDate": "2024-03-10",
"departureDate": "2024-03-12",
"numberOfGuests": 3,
"numberOfAdults": 2,
"numberOfChildren": 1,
"numberOfInfants": 0,
"codes": {
"accessCode": [
"3256"
]
}
"customFields": {
"name": "newCode",
"value": "qeww121123"
}
}'

Request Body​

The request body should be a JSON object containing the following fields:

FieldTypeDescription
reservationIdstring/numberRequired. Reservation ID of the stay.
arrivalDatestringOptional. Date of arrival in YYYY-MM-DD format.
departureDatestringOptional. Date of arrival in YYYY-MM-DD format.
guestobject
guest.namestringOptional. Full name of the guest.
guest.firstNamestringOptional. First name of the guest.
guest.lastNamestringOptional. Last name of the guest.
guest.emailstringOptional. Email address of the guest.
guest.phonestring/numberOptional. Phone number of the guest.
guest.addressobject
guest.address.line1stringOptional. Address line 1 of the guest.
guest.address.line2stringOptional. Address line 2 of the guest.
guest.address.postalCodestringOptional. Postal code of the guest's address.
guest.address.citystringOptional. City of the guest's address.
guest.address.statestringOptional. State of the guest's address.
guest.address.countrystringOptional. Country of the guest's address.
numberOfGuestsnumberOptional. Total number of guests.
numberOfAdultsnumberOptional. Number of adults among the guests.
numberOfChildrennumberOptional. Number of children among the guests.
numberOfInfantsnumberOptional. Number of infants among the guests.
numberOfPetsnumberOptional. Number of pets accompanying the guests.
statusstringOptional. Status of the reservation.
notesstringOptional. Additional notes regarding the stay.
codes.accessCodestring[]Optional. Lock-box code/Access code of the property for this reservation.
commentsstringOptional. Additional comments regarding the stay.
customFieldsobjectOptional. Custom fields for the reservation.

Custom Fields​

Custom fields can be added to the reservation object. The custom fields object should contain the following fields:

FieldTypeDescription
namestringName of the custom field.
valuestringValue of the custom field.
id (optional)stringID of the custom field.

Note: For cancelling a reservation, only include the reservationId and status = "CANCELLED" in the request body.

Example Response​

{
"data":
{
success: true,
}
}