- 订单创建消息
Scope: SHOP_ORDER_INFO 需要申请权限 需要用户授权
触发场景#
当正常交易或外部导入新的订单时,即触发订单新增消息。
公共参数#
| 参数名称 | 参数类型 | 参数描述 |
|---|---|---|
| event | string | 事件名 |
| timestamp | string | 事件发生时间标签 格式为yyyy-MM-dd HH:mm:ss(UTC+8) |
| content | Struct | 具体消息结构体 |
消息字段#
| 参数名称 | 参数类型 | 参数描述 |
|---|---|---|
| shop_id | Int64 | 店铺ID |
| create_time | Int64 | 订单创建时间 |
| order_status | Int64 | 父订单状态 |
| order_type | Int64 | 订单类型 |
| p_id | Int64 | 父订单号 |
| s_ids | list | 子订单号 |
示例#
json
{
"content": {
"shop_id": 249377,
"create_time": 1640774086,
"order_status": 1,
"order_type": 0,
"p_id": 4881995531871914000,
"s_ids": [
123
]
},
"event":"CREATE_ORDER",
"timestamp": "2011-4-5 14:19:19"
}