请求body
品骏快递请求数据
{
"biz_id": "PJ_CASH",
"cargo": {
"count": 1,
"detail_list": [
{
"count": 1,
"name": "测试商品"
}
],
"space_x": 1,
"space_y": 1,
"space_z": 1,
"weight": 1
},
"custom_remark": "备注信息",
"delivery_id": "PJ",
"insured": {
"insured_value": 0,
"use_insured": 0
},
"openid": "orHH05YrNi2LLksvVnUiup2ofo84",
"order_id": "15546883962454883",
"receiver": {
"address": "昌平二中",
"area": "昌平区",
"city": "北京市",
"mobile": "15688888888",
"name": "张先生",
"province": "北京市"
},
"sender": {
"address": "农大南路硅谷亮城C座",
"area": "海淀区",
"city": "北京市",
"mobile": "15656568811",
"name": "张先生",
"province": "北京市"
},
"service": {
"service_name": "快递包裹",
"service_type": 1
},
"shop": {
"goods_count": 1,
"goods_name": "测试商品",
"img_url": "https://image01.ebuick.com.cn/69/709/116b15aec7a57085700edba7c3a13630.png?w=70&h=70",
"wxa_path": ""
}
}
顺丰特惠请求数据
{
"biz_id": "SF_CASH",
"cargo": {
"count": 1,
"detail_list": [
{
"count": 1,
"name": "测试商品"
}
],
"space_x": 1,
"space_y": 1,
"space_z": 1,
"weight": 1
},
"custom_remark": "备注信息",
"delivery_id": "SF",
"insured": {
"insured_value": 0,
"use_insured": 0
},
"openid": "orHH05YrNi2LLksvVnUiup2ofo84",
"order_id": "15546883962454883",
"receiver": {
"address": "昌平二中",
"area": "昌平区",
"city": "北京市",
"mobile": "15688888888",
"name": "张先生",
"province": "北京市"
},
"sender": {
"address": "农大南路硅谷亮城C座",
"area": "海淀区",
"city": "北京市",
"mobile": "15656568811",
"name": "张先生",
"province": "北京市"
},
"service": {
"service_name": "顺丰特惠",
"service_type": 4
},
"shop": {
"goods_count": 1,
"goods_name": "测试商品",
"img_url": "https://image01.ebuick.com.cn/69/709/116b15aec7a57085700edba7c3a13630.png?w=70&h=70",
"wxa_path": ""
}
}
返回数据
品骏快递返回码
{
"delivery_resultcode": -1,
"delivery_resultmsg": "创建订单[orderId:15546883962454883]时,获取运单号异常",
"errcode": 9300501,
"errmsg": "delivery logic fail",
"waybill_data": []
}
顺丰特惠返回码
{
"delivery_resultcode": 20002,
"delivery_resultmsg": "address error",
"errcode": 9300501,
"errmsg": "delivery logic fail",
"waybill_data": []
}
顺丰API也没找到20002,地址错误是怎么回事
已解决,restTemple请求的时候传参把对象转换为了json字符串,出现编码问题,直接传对象就可以下单成功。
你是将所有数据转成对象还是部分?具体是哪一些呢?