获取承运商列表
获得在京东Alpha平台签约并且状态正常的所有承运商列表
1.请求参数:
请求URL:
公共参数
参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
---|---|---|---|---|
appid | String | 是 | 合作伙伴AppId | |
timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
seller_nick | String | 是 | 38173182 | 京东的账号,对应蜂巢授权返回jdseller字段 |
sign | String | 是 |
业务参数
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
- providerState | Number | 是 | 0 | 承运商状态:0是合作 1是禁用 |
2. 请求示例代码(Java)
请求示例代码
@Test
public void getProvider() throws Exception {
String sellerNick = Config.JDSellerNick ;
//业务参数
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
data.put("seller_nick", sellerNick);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("providerState", "0"); // 承运商状态:0是合作 1是禁用
data.put("sign", Utils.Sign(data, Config.AppSecret));
doHttpRequest(Config.JDgetProvider, data);
}
3. 返回结果如下:
{
"code": 0,
"message": "ok",
"data": {
"data": [
{
"approveComment": "",
"contactName": "",
"contactPhone": "13812345678",
"id": 1434698,
"inPlatform": false,
"operationType": 1,
"providerCode": "JDWLC2C",
"providerName": "京东物流个人快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "黄碧源",
"contactPhone": "15313912915",
"id": 1327,
"inPlatform": true,
"operationType": 2,
"providerCode": "YUNDA",
"providerName": "韵达快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "姜雪梅",
"contactPhone": "13811736863",
"id": 1409,
"inPlatform": true,
"operationType": 1,
"providerCode": "ZJS",
"providerName": "宅急送",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "xxxx",
"contactPhone": "153",
"id": 323141,
"inPlatform": true,
"operationType": 2,
"providerCode": "AF",
"providerName": "亚风快运",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "",
"contactPhone": "",
"id": 3046,
"inPlatform": true,
"operationType": 1,
"providerCode": "DBKD",
"providerName": "德邦快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "李峰",
"contactPhone": "xxzzz",
"id": 680414,
"inPlatform": true,
"operationType": 2,
"providerCode": "ZTO56",
"providerName": "中通快运",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "林学良",
"contactPhone": "18709876546",
"id": 1747,
"inPlatform": true,
"operationType": 2,
"providerCode": "UC",
"providerName": "优速物流",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"contactName": "陈东东",
"contactPhone": "15313912915",
"id": 470,
"inPlatform": true,
"operationType": 2,
"providerCode": "STO",
"providerName": "申通快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "张杰",
"contactPhone": "",
"id": 731302,
"inPlatform": true,
"operationType": 2,
"providerCode": "YDKY",
"providerName": "韵达快运",
"providerState": 0,
"providerType": 2,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "陶涛",
"contactPhone": "13064710242",
"id": 1819479,
"inPlatform": true,
"operationType": 2,
"providerCode": "FENGWANG",
"providerName": "丰网速运",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "杜青",
"contactPhone": "155",
"id": 2105,
"inPlatform": true,
"operationType": 2,
"providerCode": "SE",
"providerName": "速尔快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "",
"contactPhone": "",
"id": 881232,
"inPlatform": true,
"operationType": 2,
"providerCode": "ZYKD",
"providerName": "众邮快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "",
"contactPhone": "",
"id": 467,
"inPlatform": true,
"operationType": 1,
"providerCode": "SF",
"providerName": "顺丰快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "王田",
"contactPhone": "13800000000",
"id": 3668,
"inPlatform": true,
"operationType": 1,
"providerCode": "EMSBZ",
"providerName": "邮政EMS标准",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"contactName": "",
"contactPhone": "",
"id": 668820,
"inPlatform": true,
"operationType": 1,
"providerCode": "TEST_PROVIDER",
"providerName": "测试使用M1",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": true
},
{
"approveComment": "",
"contactName": "CC",
"contactPhone": "18790876789",
"id": 1499,
"inPlatform": true,
"operationType": 2,
"providerCode": "ZTO",
"providerName": "中通速递",
"providerState": 0,
"providerType": 2,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "han",
"contactPhone": "18210097654",
"id": 463,
"inPlatform": true,
"operationType": 2,
"providerCode": "YTO",
"providerName": "圆通快递",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "雷",
"contactPhone": "95324",
"id": 599866,
"inPlatform": true,
"operationType": 1,
"providerCode": "KYE",
"providerName": "跨越速运",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "",
"contactPhone": "",
"id": 4832,
"inPlatform": true,
"operationType": 2,
"providerCode": "ANE",
"providerName": "安能物流",
"providerState": 0,
"providerType": 2,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "",
"contactPhone": "",
"id": 832230,
"inPlatform": true,
"operationType": 2,
"providerCode": "SXJD",
"providerName": "顺心捷达",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
},
{
"approveComment": "",
"contactName": "黄凤",
"contactPhone": "153",
"id": 2170,
"inPlatform": true,
"operationType": 1,
"providerCode": "ZGYZZHDD",
"providerName": "中国邮政集团公司-国内小包",
"providerState": 0,
"providerType": 1,
"rangeType": 1,
"supportCod": false
}
],
"statusCode": 0,
"statusMessage": "查询成功!"
}
}
说明: code为0表示成功,非0为失败,message会包含失败原因。
4. 返回字段说明
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
resultInfo | com.jd.ldop.alpha.lp.api.dto.output.ResponseDTO | 处理结果 | |
- statusCode | Number | 结果编码 | |
- statusMessage | String | 结果描述 | |
data | java.util.List | 数据处理结果 | |
— | com.jd.ldop.alpha.lp.api.dto.output.ProviderDTO | ||
- id | Number | 承运商ID | |
- providerCode | String | 承运商编码 | |
- providerName | String | 承运商名称 | |
- providerType | 承运商类型 | ||
- operationType | 承运商经营类型 | ||
- rangeType | 配送范围 | ||
- contactName | String | 联系人 | |
- contactPhone | String | 联系人电话 | |
- contactMobile | String | 联系人手机 | |
- inPlatform | Boolean | 是否接入到alpha平台 | |
- supportCod | Boolean | 是否支持货到付款 | |
- approveState | 审核状态 | ||
- approveComment | String | 审核说明 | |
- providerState | 审核状态 |
文档更新时间: 2023-03-14 16:57 作者:admin