优品系统对接文档
  1. 获取系统参数
  • 对接前必看
  • 获取系统参数
    • 获取揽收仓库Id
      GET
    • 获取服务渠道Id
      GET
    • 获取地址类型
      GET
  • 订单推送
    • 创建订单
  • 订单信息获取
  1. 获取系统参数

获取地址类型

GET
/api/open/getAddrTypeList
该接口用于获取所有的地址类型信息,使用创建订单接口时,会需要用到的地址类型addrType参数代码,从这里获取

请求参数

Authorization
在 header 添加参数
apiKey
示例:
apiKey: ********************

返回响应

🟢200成功
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/api/open/getAddrTypeList' \
--header 'apiKey: <api-key>'
响应示例响应示例
{
    "code": 200,
    "message": "OK",
    "data": [
        {
            "id": 1,
            "name": "亚马逊仓库",
            "type": 1,
            "code": "Y",
            "status": 0,
            "typeText": "专用地址",
            "statusText": "启用中"
        },
        {
            "id": 2,
            "name": "私人地址",
            "type": 0,
            "code": "Z",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        },
        {
            "id": 3,
            "name": "退货地址",
            "type": 0,
            "code": "T",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        },
        {
            "id": 4,
            "name": "公用地址",
            "type": 0,
            "code": "G",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        },
        {
            "id": 5,
            "name": "商业地址",
            "type": 0,
            "code": "Q",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        },
        {
            "id": 6,
            "name": "测试地址",
            "type": 1,
            "code": "P",
            "status": 0,
            "typeText": "专用地址",
            "statusText": "启用中"
        },
        {
            "id": 10,
            "name": "沃尔玛",
            "type": 0,
            "code": "W",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        },
        {
            "id": 11,
            "name": "4PX",
            "type": 0,
            "code": "PX",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        },
        {
            "id": 12,
            "name": "美客多仓库",
            "type": 0,
            "code": "M",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        },
        {
            "id": 13,
            "name": "卫星仓",
            "type": 0,
            "code": "WX",
            "status": 0,
            "typeText": "通用地址",
            "statusText": "启用中"
        }
    ]
}
上一页
获取服务渠道Id
下一页
创建订单
Built with