Skip to content

订单更新推送

推送参数

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

data 参数结构

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

order_info 参数结构

参数必选类型描述
order_idstring订单id
order_typestring订单类型:normal--普通订单,groupon--拼团订单,bargain--砍价订单,points--积分订单,reward--观看奖励
goods_typestring商品类型:goods--实体商品,virtual--虚拟商品
order_statusstring订单状态: 1--待发货,2--待收货,3--申请退款,4--已退款,5--已完成,6--待付款,7--超时关闭, 8--待成团,9--砍价中
is_settlestring订单结算:1--已结算,2--待结算
create_timestring下单时间
payment_timestring支付时间
order_snstring订单号
payment_nostring交易单号(微信单号)
total_numberstring商品总数
total_pricestring订单总价
payment_moneystring订单实付
postagestring邮费
leftover_moneystring订单尾款
refund_moneystring已退款金额
shipping_namestring收货人姓名
shipping_mobilestring收货人手机号
addressstring收货地址
deliver_timestring发货时间
exp_orderstring发货物流单号

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字符串。

third_wechat_info 参数结构

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

third_user_info 参数结构

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

推送示例


{
    "key": "xxxxxxxxxxx",
    "msg_id": "xxxxxxxxxxx",
    "msg_type": "event",
    "event": "orderChange",
    "uid": 1xxxxxxxxxxx0,
    "push_msg_url": "https://xxxxxxxxxxx.nuoyun.tv/xxxxxx/xxxxxxx",
    "data": {
        "room_id": 0,
        "wechat_user_space_id": 20xxx66,
        "action": "order_pay",
        "order_info": {
            "order_type": "normal",
            "goods_type": "virtual",
            "order_status": "7",
            "is_settle": "2",
            "create_time": "1710840005",
            "payment_time": "1710840005",
            "order_sn": "240319160140204046664736",
            "payment_no": "",
            "total_number": "1",
            "total_price": "0.01",
            "payment_money": "0.00",
            "postage": "0.00",
            "leftover_money": "0.00",
            "refund_money": "0.00",
            "shipping_name": ",啦啦",
            "shipping_mobile": "17716281723",
            "deliver_time": "0",
            "exp_order": null,
            "address": ""
        },
        "order_goods_list": [
            {
                "goods_no": null,
                "goods_id": "170869",
                "goods_name": "ces",
                "goods_cnt": "1",
                "goods_price": "0.01",
                "total_price": "0.01",
                "postage": "0.00",
                "payment_money": "0.00",
                "refund_money": "0.00",
                "refund_cnt": "0",
                "goods_attribute": ""
            }
        ],
        "third_wechat_info": [
            {
                "authorizer_appid": "wxc2xxxx58fa6f",
                "openid": "oKFTf0TEfzfgxxxxFtqc",
                "unionid": "o8-ysvxxxxCgFAd4Ye1k"
            }
        ],
        "third_user_info": {
            "third_uuid": xxxx,
            "third_attach": "{\"site\":\"KD13\"}"
        }
    }
}