Skip to content

订单更新推送

推送参数

其他默认推送参数文档,参考消息推送-使用说明。
支持下单、支付成功通知,退款申请、成功通知。
拼团订单,拼团成功后通知支付成功。
订单信息、订单商品信息是推送时获取当前订单信息进行推送。
参数必选类型描述
msg_typestring消息类型:event-事件
eventstring事件类型 :orderChange--订单更新
dataobject消息内容

data 参数结构

参数必选类型描述
room_idstring直播间id
wechat_user_space_idstring用户ID
actionstring订单更新事件类型:order_create--订单创建,order_pay--订单支付成功,order_refund_apply--订单退款申请,order_refund_success--订单退款成功,order_express_update --订单物流更新,order_refund_update --退款订单更新
order_infoobject订单信息
order_goods_listarray订单商品信息
third_wechat_infoarray客户公众号下用户信息
third_user_infoobject客户系统下用户信息

order_info 参数结构

参数必选类型描述
order_idinteger订单id
app_idinteger直播间ID
wechat_user_space_idinteger用户ID
order_typestring订单类型:normal--普通订单,groupon--拼团订单,bargain--砍价订单,points--积分订单,reward--观看奖励
goods_typestring商品类型:goods--实体商品,virtual--虚拟商品
order_statusinteger订单状态: 1--待发货,2--待收货,3--申请退款,4--已退款,5--已完成,6--待付款,7--超时关闭, 8--待成团,9--砍价中
is_settleinteger订单结算:1--已结算,2--待结算
create_timeinteger下单时间
payment_timestring支付时间
order_snstring订单号
payment_nostring交易单号(微信单号)
total_numberinteger商品总数
total_pricestring订单总价
payment_moneystring订单实付
postagestring邮费
leftover_moneystring订单尾款
refund_moneystring已退款金额
shipping_namestring收货人姓名
shipping_mobilestring收货人手机号
addressstring收货地址
deliver_timeinteger发货时间
exp_idinterget物流公司ID
exp_orderstring发货物流单号
channel_invite_infoobject门店邀请信息(注:当action为order_create或order_pay时返回)
room_invite_infoobject门店邀请信息(注:当action为order_create或order_pay时返回)

channel_invite_info 参数结构

参数必选类型描述
channel_sale_namestring销售员名称
channel_sale_wechat_user_space_idinteger销售员用户id
channel_namestring门店名称
channel_idinteger门店id
channel_director_namestring负责人名称
channel_director_wechat_user_space_idinteger负责人用户id
channel_invite_namestring邀请人名称
channel_invite_wechat_user_space_idinteger邀请人用户id

room_invite_info 参数结构

参数必选类型描述
invited_wechat_user_space_idinteger邀请人id
invited_namestring邀请人昵称

order_goods_list 参数结构

参数必选类型描述
goods_nostring商品编号
goods_idstring商品id
goods_namestring商品名称
goods_cntstring商品购买数量
goods_pricestring商品单价
total_pricestring商品总价
postagestring邮费
payment_moneystring商品实付金额
refund_moneystring商品已退款金额
refund_cntstring商品已退款数量
goods_attributestring商品选择属性。json字符串。
goods_encodestring商品/货品编码
goods_specs_encodestring商家编码
sku_encodestringSKU编码

third_wechat_info 参数结构

参数必选类型描述
authorizer_appidstring客户公众号appid
openidstring客户openid
unionidstring客户unionid

third_user_info 参数结构

参数必选类型描述
third_uuidstring客户系统用户ID
third_attachstring客户系统用户附属信息。json字符串

推送示例


{
    "key": "示例key",
    "msg_id": "示例msg_id",
    "msg_type": "event",
    "event": "orderChange",
    "uid": 1234567890,
    "push_msg_url": "https://example.com/push/orderChange",
    "data": {
        "room_id": 12345,
        "wechat_user_space_id": 67890,
        "action": "order_pay",
        "order_info": {
            "order_id": 10001,
            "app_id": 10000001,
            "wechat_user_space_id": 10002,
            "order_type": "normal",
            "goods_type": "virtual",
            "order_status": 7,
            "is_settle": 2,
            "create_time": 1710840005,
            "payment_time": "2024-01-01 10:00:00",
            "order_sn": "20240101100000000001",
            "payment_no": "PAY202401010001",
            "total_number": 1,
            "total_price": "99.00",
            "payment_money": "99.00",
            "postage": "0.00",
            "leftover_money": "0.00",
            "refund_money": "0.00",
            "shipping_name": "张三",
            "shipping_mobile": "13800000000",
            "deliver_time": 1710843600,
            "exp_id": 1,
            "exp_order": "SF123456789CN",
            "address": "北京市朝阳区示例路1号",
            "channel_invite_info": {
                "channel_sale_name": "销售A",
                "channel_sale_wechat_user_space_id": 20001,
                "channel_name": "示例门店",
                "channel_id": 30001,
                "channel_director_name": "负责人B",
                "channel_director_wechat_user_space_id": 20002,
                "channel_invite_name": "邀请人C",
                "channel_invite_wechat_user_space_id": 20003
            },
            "room_invite_info": {
                "invited_wechat_user_space_id": 20004,
                "invited_name": "邀请人D"
            }
        },
        "order_goods_list": [
            {
                "id": 50001,
                "goods_no": "G20240101",
                "goods_id": "170869",
                "goods_name": "示例商品A",
                "goods_cnt": "2",
                "goods_price": "49.50",
                "total_price": "99.00",
                "postage": "0.00",
                "payment_money": "99.00",
                "refund_money": "0.00",
                "refund_cnt": "0",
                "goods_attribute": "{\"颜色\":\"红色\",\"尺码\":\"L\"}",
                "goods_encode": "GOODS20240101",
                "goods_specs_encode": "SPECS20240101",
                "sku_encode": "SKU20240101"
            }
        ],
        "third_wechat_info": [
            {
                "authorizer_appid": "wx1234567890abcdef",
                "openid": "oKFTf0TEfzfg1234567890",
                "unionid": "o8-ysv1234567890abcdef"
            }
        ],
        "third_user_info": {
            "third_uuid": "user-123456",
            "third_attach": "{\"site\":\"KD13\"}"
        }
    }
}