该接口用于获取所有的地址类型信息,使用创建订单接口时,会需要用到的地址类型 addrType参数代码,从这里获取
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": "启用中"
}
]
}