使用移动应用的注册信息获取了接口调用凭证后使用凭证调用了物流助手的生成运单接口(请求体内容附在最后),接口返回48001 ,api unauthorized。
{
"add_source": 2,
"order_id": "TEST000000000005-0002",
"openid": null,
"delivery_id": "SF",
"biz_id": "0210685294",
"custom_remark": "手办易碎商品,请轻拿轻放",
"wx_appid":"wx2918832b24f623e3",
"sender": {
"name": "抱梦潮玩",
"mobile": "13512120653",
"address": "上海浦东新区康桥镇川周公路3239弄4号二层"
},
"receiver": {
"name": "朱文旭",
"mobile": "15055487400",
"address": "上海市上海市浦东新区长泰广场e座"
},
"cargo": {
"count": 1,
"weight": 1,
"space_x": 10,
"space_y": 10,
"space_z": 10,
"detail_list": [
{
"name": "手办",
"count": 1
},
{
"name": "手办",
"count": 1
},
{
"name": "手办",
"count": 1
}
]
},
"shop": {
"wxa_path": "/index/index?from=waybill&id=01234567890123456789",
"detail_list": [
{
"goods_name": " ",
"goods_img_url": " ",
"goods_desc": " "
}
]
},
"insured": {
"use_insured": 0,
"insured_value": 0
},
"service": {
"service_type": 0,
"service_name": "标准快递"
}
}
需要在mp上申请接入物流助手功能:
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/introduction.html
api unauthorized 是鉴权验证不通过, 建议参考文档检查一下认证信息或逻辑是否符合要求
这个是小程序接口吧