Skip to main content

Update Property Availability with Dates

Update the availability of a property for a given date range.

HTTP Request​

POST https://dev.calry.app/api/v1/vrs/availability

HeaderValue
AuthorizationBearer YOUR_ACCESS_TOKEN
workspaceIdYOUR_WORKSPACE_ID
integrationAccountIdYOUR_INTEGRATION_ACCOUNT_ID

Query Parameters​

ParameterTypeDescription
propertyIdRequired string/numberThe property id.
startDateRequired string (YYYY-MM-DD)The start date of the quote.
endDateRequired string (YYYY-MM-DD)The end date of the quote.
statusOptional stringAVAILABLE/NOT_AVAILABLE
amountOptional numberThe amount for the stay.
minimumNightsOptional numberThe minimum nights for the stay.
notesOptional stringAdditional notes regarding the stay.
  • Note if you want to update the availability of a property for a single date, you can pass the same date in startDate and endDate parameters.
  • Note that status of the property is set to AVAILABLE by default. If you want to set the status to NOT_AVAILABLE, you can pass the `status

Example Request​

curl --location 'https://dev.calry.app/api/v1/vrs/availability' \
--header 'integrationAccountId: 7f0cc1c5-fbe1-4196-b457-ff737d42621e' \
--header 'workspaceId: 97e9e263-2e94-4c0e-80a6-1382e88f0a86' \
--header 'Authorization: Bearer eyJraWQiOiJzLWE1YTZiZDVjLTE5YjYtNDFiNy1iMTJmLTM1ZTIwYTBkMGIxMCIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAvYXV0aCIsInVzZXJJZCI6ImRkNjc2NGY5LTk5ZTctNGVhZi04YWEyLWMwNmQzZGE3ODMyMiIsIndvcmtzcGFjZUlkIjoiOTdlOWUyNjMtMmU5NC00YzBlLTgwYTYtMTM4MmU4OGYwYTg2IiwibmFtZSI6ImFzYSIsInNvdXJjZSI6Im1pY3Jvc2VydmljZSIsImlhdCI6MTcyMjY5MjMzNCwiZXhwIjoxMjEyMzg0NTgxNDY2Nn0.BdRobkl_mjj1khVbgxMTUI9H-iWkCKOFnSeXwMkHJ9EzIvVemG0ZTYqcLBCaGYWYlHZ2o10uH7SbhyaTVw3dQurt8kwvCASi9d0H206q3Vm02_r0K9_V00qI7CMQ7psk0Yc14s2nFwOtqxrw1YtPSDfRFm4vcGoqoOcd0E0KiFUk1BiY548e_w2yujtwYO36aofY4jh7zVITv5wgS0nmcdoZpX-JIeqv4hj_rui454I83-zKF5FlM9I2jXiaw-iPdB_TaQ36zgvt67NI4g3-j7gGJ5pfvMyx7pkGscEcDA1UZOG3GivE1mN-ukGE1qQ9O1vR0Ysgkt363IyamZzP-w' \
--header 'Content-Type: application/json' \
--data '{
"propertyId": "500008838",
"startDate": "2024-08-19",
"endDate": "2024-08-19",
"amount": 250,
"status": "AVAILABLE",
"minimumNights": 2
}'

Example Response​

{
"success": true,
"data": {
"propertyId": "500008838",
"startDate": "2024-08-19",
"endDate": "2024-08-19",
"amount": 2000,
"status": "NOT_AVAILABLE"
}
}