Update or create account level channel commission
Changed onReplaces all account-level channel commissions for the authenticated account.
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 account-level commissions missing from the body are removed (an empty array removes all account-level commissions).
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/channel-commissions-v2/account
- AuthAPI key in header authorization
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 account-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
- breaking
the request's body type changed from
objecttoarray - warning
removed the request property
- warning
removed the request property
- info
api operation id
ChannelCommissionController_updateAccountChannelCommission1removed and replaced withChannelCommissionsOpenApiController_updateChannelCommissionAccountLevel - info
added the media type
application/jsonfor the response with the status
- breaking