收藏
回答

自定义交易组件生成订单api中default_receiving_address是必填请求参数吗?

请大佬们指教,在商家信息默认退货地址已完善情况下,自定义交易组件生成订单api请求参数default_receiving_address是必填参数吗?

(1)文档链接:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/add_order_new.html

(2)请求参数:

{

"create_time": "2022-07-05 10:46:31",

"out_order_id": "T20220705095428204286",

"openid": "oE0ofXXXXXXXXXXJB1UP0",

"path": "/pages/order/order_detail/order_detail?TradeID=T20220705095428204286",

"order_detail": {

"product_infos": [{

"out_product_id": "140925",

"out_sku_id": "0",

"product_cnt": 1,

"sale_price": 1,

"sku_real_price": 1,

"title": "视频号功能测试单商品,不要删改",

"head_img": "http://teamaxwxstatic-1251048739.file.myqcloud.com/images/957/1%281528964470242%29.jpg",

"path": "pages/goods/goods_detail/goods_detail?GoodsID=140925"

}],

"pay_info": {

"pay_method_type": 0

},

"price_info": {

"order_price": 1,

"freight": 1,

"discounted_price": 0,

"additional_price": -1,

"additional_remarks": ""

}

},

"delivery_detail": {

"delivery_type": 1

},

"address_info": {

"receiver_name": "测试君",

"detailed_address": "123",

"tel_number": "13800138000",

"country": "中国",

"province": "广东省",

"city": "广州市",

"town": "天河区"

},

"fund_type": 1,

"expire_time": 1657017992,

"trace_id": null,

"aftersale_duration": 7,

"default_receiving_address": null,

"stringify_64bits_number": true

}

(3)请求结果:

errcode:990013 ;errmsg:expecting AddressInfo.receiver_name.size >= 1, actually 0 rid: 62c3a609-23632719-760e1ef3

(4)商家信息(在此设置情况是重试几次都是以上返回结果):

{

"service_agent_path": "pages/shop/index/index",

"service_agent_phone": "13800138000", //不要在意电话

"service_agent_type": [0, 1, 2],

"default_receiving_address": {

"receiver_name": "仓库A",

"detailed_address": "广州市天河区华夏路12345号",

"tel_number": "13800138000",

"country": "中国",

"province": "广东省",

"city": "广州市",

"town": "天河区"

}

}

回答关注问题邀请回答
收藏
登录 后发表内容