{
"errcode": 1010005,
"errmsg": "price_info字段异常,请检查json及字段合法性 rid: 61e62457-14243214-55e252de"
}
{
"create_time": "2022-01-18 10:17:25",
"out_order_id": "14", // 必填,普通场景下的外部订单ID;合单支付(多订单合并支付一次)场景下是主外部订单ID
"openid": "xxxx",
"path": "/pages/order.html?out_order_id=14", // 这里的path中的最好有一个参数的值能和out_order_id的值匹配上
"scene": 1175, // 下单时小程序的场景值,可通过
"out_user_id": "1403284515312373762",
"order_detail": {
"product_infos": [
{
"out_product_id": "787",
"out_sku_id": "787",
"product_cnt": 1,
"sale_price": 600, //生成这次订单时商品的售卖价,可以跟上传商品接口的价格不一致
"real_price": 600, // 扣除优惠后单件sku的分摊价格(单位:分),如果没优惠则与sale_price一致
"path": "pages/productDetail/productDetail?productId=787",
"title": "百事可乐500ml无糖树莓",
"head_img": "https:/mmecimage.cn/p/wx9419255d1d278740/HIyddOXZX4rcaBgf-xz_IsDoX5bw1n49auav4ysrRA"
}
],
"pay_info": {
"pay_method_type": 1 // 0: 微信支付, 1: 货到付款, 2: 商家会员储蓄卡(默认0)
},
"price_info": { // 注意价格字段的单价是分,不是元
"order_price": 600,
"freight": 0
}
},
"delivery_detail": {
"delivery_type": 2 // 1: 正常快递, 2: 无需快递, 3: 线下配送, 4: 用户自提
},
"address_info": {
"receiver_name": "张是",
"detailed_address": "武侯大道",
"tel_number": "xxxx",
"country": "中国",
"province": "四川省",
"city": "成都市",
"town": "武侯区"
}
}
去掉注释