收藏
回答

【物流助手】添加订单失败

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug logistics.addOrder 工具 6.5.3 2.0.0

请求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": []

}


回答关注问题邀请回答
收藏

1 个回答

  • 神奇海螺🐚
    神奇海螺🐚
    2019-04-08

    顺丰API也没找到20002,地址错误是怎么回事

    2019-04-08
    有用
    回复 2
    • 神奇海螺🐚
      神奇海螺🐚
      2019-04-08

      已解决,restTemple请求的时候传参把对象转换为了json字符串,出现编码问题,直接传对象就可以下单成功。

      2019-04-08
      回复
    • 2019-06-26

      你是将所有数据转成对象还是部分?具体是哪一些呢?

      2019-06-26
      回复
登录 后发表内容