Update or create listing level channel commission
Changed onReplaces all listing-level channel commissions for the given listing.
Send an array of channel and source commission definitions. Each item requires channel and source; tax and commission are optional (same as POST/PATCH). If none exist yet, they are created. Any listing-level commissions missing from the body are removed (an empty array removes all listing-level commissions).
Unlike GET /unit-type/{unitTypeId} (which remaps a sub-unit ID to its parent before lookup), this PUT stores commissions under the unitTypeId you send — no parent remapping and no 400 for sub-units. Prefer the parent unit type ID so GET and PUT address the same listing-level commissions.
These commissions are used for reservations only when the listing levelEntityType is UNIT_TYPE (see GET/PUT unit-type/{unitTypeId}/level-configurations). When the level is ACCOUNT, account-level commissions are used instead.
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/channel-commissions-v2/unit-type/{unitTypeId}
- AuthAPI key in header authorization
Path parameters
Listing / unit type ID to store under (for example df7hf01cnduhdb2125854dj8). Not remapped to a parent (unlike GET on this path) and not rejected for sub-units. Prefer the parent unit type ID.
Request body
Example request
[
{
"commission": {
"value": 5,
"of": [
"ACCOMMODATION_FARE",
"CLEANING_FEE",
"LOCAL_TAX",
"DAMAGE_WAIVER"
]
},
"tax": 3,
"channel": "bookingCom",
"source": "bookingCom"
}
]Response
The saved listing-level channel commissions. Each item in channels includes _id for use as channelCommissionId on PATCH and DELETE.
Example response
{
"channels": [
{
"commission": {
"value": 5,
"of": [
"ACCOMMODATION_FARE",
"CLEANING_FEE",
"LOCAL_TAX",
"DAMAGE_WAIVER"
]
},
"tax": 3,
"channel": "bookingCom",
"source": "bookingCom",
"_id": "5f3f7b2f5d7b9b001f6f6c9d"
}
],
"accountId": "df7hf01cnduhdb2125854dj8",
"unitTypeId": "df7hf01cnduhdb2125854dj8"
}Changes
- info
endpoint added
- info