名称:生成订单结算

接口:/live/livegoods/buyCar

请求方式:post

参数名 类型 必填 说明 示例
live_id int Y 直播id 9
pay_type int Y 1公众号支付2扫码支付 9
car_ids[0] int Y 购物车id 9
car_ids[1] int Y 购物车id 9
total_money int Y 总金额 9
pay_money int Y 实际支付金额 9
coupon_ids[0] int Y 优惠券id(非必传,但是用了就必须传) 9
coupon_ids[1] int Y 优惠券id (非必传,但是用了就必须传) 9
coupon_money int Y 优惠的金额 (非必传,但是用了就必须传) 9
address_id int Y 地址id 9

说明

1.此方法需要登录,

{ //native 反回
    "code": 200,
    "message": "success",
    "result": {
        "order_info": {
            "live_id": "142",
            "pay_money": 4,
            "total_money": 4,
            "pay_order_num": "220201211173523Nav6tN",
            "order_num": "20201211173522VsGal2"
        },
        "params": {
            "code_url": "weixin://wxpay/bizpayurl?pr=sFMYLQ400"
        }
    }
}
{ //jsapi 反回
    "code": 200,
    "message": "success",
    "result": {
        "order_info": {
            "live_id": "142",
            "pay_money": 4,
            "total_money": 4,
            "pay_order_num": "220201211173523Nav6tN",
            "order_num": "20201211173522VsGal2"
        },
        "params": { //会生成jsapi所需要的参数
//            "code_url": "weixin://wxpay/bizpayurl?pr=sFMYLQ400"
        }
    }
}

results matching ""

    No results matching ""