Update listing basic fees
Changed onUpsert replaces stored listing-default cleaningFee only when cleaningFee is sent; omitting it keeps the stored default. This PUT cannot clear only the listing default while keeping overrides — use DELETE on the listing to remove all basic fees for that listing. channelConfigurations is required: send [] to store no overrides (clears existing). Omitting channelConfigurations is 400. An override entry may omit cleaningFee (channel only); GET by channel then falls back to the listing default. Do not send _id or lastUpdated on write; they are server-owned. When shouldUpdateSubUnits is true, child listings are overwritten with the same payload (not a merge of each child's previous settings).
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/basic-fees/listings/{listingId}
- AuthAPI key in header authorization
Path parameters
Listing id (for example 5f8d0d55b54764421b7156c9).
Query parameters
When true, overwrites child listings with the same payload as this request (not a merge of each child's previous settings). Example: false.
Request body
Example request
{
"cleaningFee": {
"value": {
"_id": "5f8d0d55b54764421b7156c9",
"multiplier": "PER_STAY",
"formula": 100,
"valueType": "FIXED"
}
},
"channelConfigurations": [
{
"cleaningFee": {
"value": {
"_id": "5f8d0d55b54764421b7156c9",
"multiplier": "PER_STAY",
"formula": 100,
"valueType": "FIXED"
}
}
}
]
}Response
The basic fees have been successfully created or updated.
Example response
{
"listingId": "5f8d0d55b54764421b7156c9",
"accountId": "5f8d0d55b54764421b7156c8",
"cleaningFee": {
"value": {
"_id": "5f8d0d55b54764421b7156c9",
"multiplier": "PER_STAY",
"formula": 100,
"valueType": "FIXED"
}
},
"channelConfigurations": [
{
"cleaningFee": {
"value": {
"_id": "5f8d0d55b54764421b7156c9",
"multiplier": "PER_STAY",
"formula": 100,
"valueType": "FIXED"
}
}
}
]
}Changes
- info
endpoint added
- info