拒绝订单

拒绝待处理的订单请求。订单状态必须为 wait_accept。该端点与渠道通信以拒绝订单。

Airbnb 订单可以传入拒绝原因,以及 Airbnb 拒单时要求的给客人的说明。所有字段均为可选:未传或传空的 decline_message_to_guest 时,百居易 会代为发送一条默认英文说明(例如:"Sorry, we are unable to accommodate your requested dates."),decline_reason 默认为 not_comfortable。如需让客人看到特定内容或客人所用语言的说明,请自行传入 decline_message_to_guest。其他渠道会忽略这些字段。

Path Params
string
required

订单代码。

Body Params

可选。仅用于 Airbnb 订单,其他渠道会忽略。

string
enum
Defaults to not_comfortable

仅 Airbnb。拒绝原因,会发送给 Airbnb。未传时默认为 not_comfortable。

Allowed:
string

仅 Airbnb。给客人的拒绝说明,客人会在 Airbnb 上看到。Airbnb 拒单时要求必须有说明:未传或为空时,百居易 会发送一条默认英文说明(例如:"Sorry, we are unable to accommodate your requested dates.")。

string

仅 Airbnb。给 Airbnb 的私密备注,客人看不到。未传时不发送。

Responses

400

订单不处于待确认状态、账号授权已被撤销、账号已断开连接,或 decline_reason 不在允许的取值内(Airbnb 订单)。

404

未找到订单或第三方账户。

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