post
https://api.myhostex.com/v3/channel_accounts/booking/promotions//deactivate
停用某个 Booking.com 优惠活动,让它不再适用于新的预订。Booking.com 没有删除优惠的方式,停用就是去掉一条优惠的办法,之后还可以再启用。优惠已停用时返回 changed: false。
- 重发同样的请求是安全的。
- 你的账号未开放新建与编辑优惠时返回
501(与POST /channel_accounts/booking/promotions/excluded_dates分开开放)。 - 每个 Booking.com 住宿每分钟最多 10 次优惠写入,与
POST /channel_accounts/booking/promotions/excluded_dates共用,此外仍受账号级限流约束;429响应带有Retry-After。 502表示 Booking.com 暂时不可用或结果无法确认,改动仍可能在之后几分钟内生效。
需要可写的访问令牌。
