# 获取快递列表
接口地址: http://www.damaijia168.com/vv/external/v1/warehouse_get_list
请求方式: GET
返回格式: JSON
# 请求头参数
| 参数 | 类型 | 必选 | 值 | 示例 |
|---|---|---|---|---|
| Authorization | string | 是 | 授权 access_token | 1798c6aadec33d1bc2f5b707f1049aefexxxx |
# 大麦家仓库说明
获取到大麦家仓库列表,包含每个仓库的禁发区。
# 请求代码示例
cURL请求代码示例
curl --location --request GET 'http://www.damaijia168.com/vv/external/v1/warehouse_get_list' \--header 'accept: application/json' \
--header 'Authorization: 4703691108576a896499xxxxxxxx'
PHP请求代码示例
<?php
$curl = curl_init();curl_setopt_array($curl, array( CURLOPT_URL => 'http://www.damaijia168.com/vv/external/v1/warehouse_get_list', CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'accept: application/json',
'Authorization: 4703691108576a896499ddxxxxxxxx'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
JAVA请求代码示例
OkHttpClient client = new OkHttpClient().newBuilder() .build();Request request = new Request.Builder() .url("http://www.damaijia168.com/vv/external/v1/warehouse_get_list")
.method("GET", null)
.addHeader("accept", "application/json")
.addHeader("Authorization", "4703691108576a896499ddaf8fxxxxxx")
.build();
Response response = client.newCall(request).execute();
Python请求代码示例
import requests
import json
url = "http://www.damaijia168.com/vv/external/v1/warehouse_get_list"
headers = {
'Authorization': '1798c6aadec33d1bc2f5b707f1049aefexxxx',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
# 响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| data | array | 返回数据 |
| id | int | 快递ID |
| expressName | string | 快递名称 |
| expressImgUrl | string | 快递图片url |
| warehouseSend | array | 仓库信息 |
| –id | int | 仓库ID |
| –warehouseName | string | 仓库名称 |
| –warehouseAliasName | string | 仓库发货地 |
| –warehousePrice | array | 仓库快递价格(点券) |
| –forbidSend | object | 仓库禁发地信息 |
| –district | array | 禁发区域 |
| –startTime | string | 禁发开始时间 |
| –endTime | string | 禁发结束时间 |
| –endTime | string | 禁发结束时间 |
| –is_support_encry | int | 是否支持密文 0否1支持 |
# 返回数据
{
{
"data": [
{
"id": 1,
"expressName": "韵达快递",
"expressImgUrl": "https://pic.rmb.bdstatic.com/bjh/5746e07cea6d18dc6465a5435df7d528.jpeg",
"warehouseSend": [
{
"id": 1,
"warehouseName": "韵达广东仓",
"warehouseAliasName": "广东",
"warehousePrice": 145,
"forbidSend": {
"district": [
"浙江省"
],
"startTime": "2021-08-01 00:00:00",
"endTime": "2021-09-02 00:00:00"
}
},
{
"id": 3,
"warehouseName": "韵达江苏仓",
"warehouseAliasName": "江苏",
"warehousePrice": 145,
"forbidSend": []
},
{
"id": 12,
"warehouseName": "韵达福建仓",
"warehouseAliasName": "福建",
"warehousePrice": 145,
"forbidSend": []
},
{
"id": 23,
"warehouseName": "韵达河南仓",
"warehouseAliasName": "河南",
"warehousePrice": 135,
"forbidSend": []
},
{
"id": 35,
"warehouseName": "韵达辽宁仓 ",
"warehouseAliasName": "辽宁",
"warehousePrice": 150,
"forbidSend": []
}
]
},
{
"id": 2,
"expressName": "邮政快递",
"expressImgUrl": "https://pic.rmb.bdstatic.com/bjh/8b4e270a314cb01986be1822bbd52c6f.jpeg",
"warehouseSend": [
{
"id": 5,
"warehouseName": "邮政广东梅州仓",
"warehouseAliasName": "广东",
"warehousePrice": 211,
"forbidSend": []
},
{
"id": 11,
"warehouseName": "邮政福建仓",
"warehouseAliasName": "福建",
"warehousePrice": 185,
"forbidSend": {
"district": [
"浙江省/杭州市"
],
"startTime": "2021-08-15 00:00:00",
"endTime": "2021-09-30 00:00:00"
}
},
{
"id": 13,
"warehouseName": "邮政广东广州仓",
"warehouseAliasName": "广东",
"warehousePrice": 185,
"forbidSend": []
},
{
"id": 21,
"warehouseName": "邮政湖北仓",
"warehouseAliasName": "湖北",
"warehousePrice": 190,
"forbidSend": []
},
{
"id": 28,
"warehouseName": "邮政北京仓",
"warehouseAliasName": "北京",
"warehousePrice": 190,
"forbidSend": []
}
]
},
{
"id": 3,
"expressName": "申通快递",
"expressImgUrl": "https://pic.rmb.bdstatic.com/bjh/1a3dd81e4ef2bb92fec41fbd2f5759f9.jpeg",
"warehouseSend": [
{
"id": 4,
"warehouseName": "申通福建仓",
"warehouseAliasName": "福建",
"warehousePrice": 145,
"forbidSend": []
},
{
"id": 7,
"warehouseName": "申通广东仓",
"warehouseAliasName": "广东",
"warehousePrice": 161,
"forbidSend": []
},
{
"id": 20,
"warehouseName": "申通上海仓",
"warehouseAliasName": "上海",
"warehousePrice": 150,
"forbidSend": []
}
]
},
{
"id": 4,
"expressName": "顺丰快递",
"expressImgUrl": "https://pic.rmb.bdstatic.com/bjh/d9eea2324a2627d2b1bf6a10035300c1.jpeg",
"warehouseSend": [
{
"id": 9,
"warehouseName": "顺丰湖南仓",
"warehouseAliasName": "湖南",
"warehousePrice": 450,
"forbidSend": []
},
{
"id": 19,
"warehouseName": "顺丰河北仓",
"warehouseAliasName": "河北",
"warehousePrice": 430,
"forbidSend": []
},
{
"id": 22,
"warehouseName": "顺丰广东仓",
"warehouseAliasName": "广东",
"warehousePrice": 440,
"forbidSend": []
}
]
},
{
"id": 5,
"expressName": "圆通快递",
"expressImgUrl": "https://pic.rmb.bdstatic.com/bjh/885812d7e78c8c62dea8a58d68564f5c.jpeg",
"warehouseSend": [
{
"id": 6,
"warehouseName": "圆通广东仓",
"warehouseAliasName": "广东",
"warehousePrice": 145,
"forbidSend": []
}
]
},
{
"id": 6,
"expressName": "中通快递",
"expressImgUrl": "https://pic.rmb.bdstatic.com/bjh/c62ecf853c02e8d496223de058a49de0.jpeg",
"warehouseSend": [
{
"id": 18,
"warehouseName": "中通江苏徐州仓",
"warehouseAliasName": "江苏",
"warehousePrice": 145,
"forbidSend": []
},
{
"id": 29,
"warehouseName": "中通江苏苏州仓",
"warehouseAliasName": "江苏",
"warehousePrice": 150,
"forbidSend": []
},
{
"id": 30,
"warehouseName": "中通浙江杭州仓",
"warehouseAliasName": "浙江",
"warehousePrice": 150,
"forbidSend": []
},
{
"id": 31,
"warehouseName": "中通江苏无锡仓",
"warehouseAliasName": "江苏",
"warehousePrice": 150,
"forbidSend": []
},
{
"id": 32,
"warehouseName": "中通浙江台州仓",
"warehouseAliasName": "浙江",
"warehousePrice": 150,
"forbidSend": []
},
{
"id": 34,
"warehouseName": "中通江苏南京仓",
"warehouseAliasName": "江苏",
"warehousePrice": 150,
"forbidSend": []
},
{
"id": 36,
"warehouseName": "中通福建仓",
"warehouseAliasName": "福建",
"warehousePrice": 150,
"forbidSend": []
}
]
}
],
"status": 0
}
}
# 错误码(更多错误码请进入获取token页面查看公共错误码)
| 状态码 | 错误说明 |
|---|---|
| 200 | 认证失败 |
← 1-2_获取用户余额 1-4_获取商品列表 →