Params
Name | Type | Requireness | Default value | Description |
---|---|---|---|---|
days | array | required | none | Array of BatchDayDto objects. |
property_uid | string | required | none | UID of property. |
BatchDayDto
Key | Type | Requireness | Default value | Description |
---|---|---|---|---|
date | string | required | none | Date YYYY-MM-DD. |
price | float | required | none | Nightly price. |
currency | string | required | none | Currency code (3 symbols). |
min_stay | int | optional | none | Minimum stay length. |
Description
Set property's calendar data for separate days. Data will be applied only if user's property setting allows it, otherwise data will be saved for further user's review.
This endpoint requires one of the following scopes: pricing-management
Request sample
{
"property_uid": "e3ddcd1a-0e3e-4649-91be-c59d7b56",
"days":[
{
"date": "2021-02-08",
"currency": "CAD",
"price": 52,
"min_stay": 2
},
{
"date": "2021-02-09",
"currency": "CAD",
"price": 52,
"min_stay": 1,
"is_available": 0
},
{
"date": "2021-02-10",
"currency": "CAD",
"price": 50,
"min_stay": 4
}
]
}
Response sample
{
"status": 0
}