启用 Booking.com 优惠活动

启用一条已停用的 Booking.com 优惠活动,让它按当前的折扣、日期、房型和价格计划重新生效。请先用 GET /channel_accounts/booking/promotions 读取,确认将要上线的内容。优惠已启用时返回 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 暂时不可用或结果无法确认,改动仍可能在之后几分钟内生效。

需要可写的访问令牌。

Path Params
string
required

Booking.com 优惠活动 id,即 GET /channel_accounts/booking/promotions 返回的 promotions[].id。

Body Params
integer
required

Booking.com 渠道账号的 id,来自 GET /channel_accounts。一个 Booking.com 渠道账号对应一个 Booking.com 住宿;优惠活动属于住宿,而不是某个房型。

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json