- 订单取消消息
Scope: SHOP_ORDER_INFO 需要申请权限 需要用户授权
触发场景#
- 在线支付订单且订单状态为「待付款」,买家可取消该订单
- 在线支付订单且订单状态为「待付款」,超时未支付,订单自动取消
- 在线支付订单且订单状态为「待付款」,商家主动帮买家关闭订单;
公共参数#
| 参数名称 | 参数类型 | 参数描述 |
|---|---|---|
| event | string | 事件名 |
| timestamp | string | 事件发生时间标签 格式为yyyy-MM-dd HH:mm:ss(UTC+8) |
| content | Struct | 具体消息结构体 |
消息字段#
| 参数名称 | 参数类型 | 参数描述 |
|---|---|---|
| shop_id | Int64 | 店铺ID |
| cancel_reason | String | 取消原因 |
| cancel_time | Int64 | 订单取消时间 |
| order_status | Int64 | 父订单状态 |
| order_type | Int64 | 订单类型 |
| p_id | Int64 | 父订单号 |
| s_ids | list | 子订单号 |
示例#
json
{
"content": {
"shop_id": 2493773,
"cancel_reason": "不想要了",
"cancel_time": 1629993663,
"order_status": 4,
"order_type": 0,
"p_id": 4835696922606318000,
"s_ids": [
123
]
},
"event":"CANCEL_ORDER",
"timestamp": "2011-4-5 14:19:19"
}