| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| type | string | 是 | 快递公司 自动识别请写auto |
| number | string | 是 | 快递单号 |
| mobile | string | 否 | 收件人/寄件人手机号(顺丰快递/跨越速运需要) |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| time | string | 时间 |
| status | string | 状态 |
| issign | int | 是否签收(已弃用,请使用deliverystatus) |
| type | string | 快递公司 |
| number | string | 快递单号 |
| deliverystatus | int | 物流状态 1在途中 2派件中 3已签收 4派送失败(拒签等) |
<?php
$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.jisuapi.com/express/query?appkey=$appkey";
$type = 'bsky';
$number = '70303808964270';
$post = array('type'=>$type,
'number'=>$number
);
$result = curlOpen($url, array('post'=>$post,'ssl'=>true));
$jsonarr = json_decode($result, true);
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
if($result['deliverystatus'] == 3) echo '已签收'.'
';
else echo '未签收'.'
';
foreach($result['list'] as $val)
{
echo $val['time'].' '.$val['status'].'
';
}
{
"status": 0,
"msg": "ok",
"result": {
"number": "4303200322000",
"type": "yunda",
"typename": "韵达快运",
"logo": "https://api.jisuapi.com/express/static/images/logo/80/yunda.png",
"list": [
{
"time": "2019-12-30 20:24:51",
"status": "北京分拨中心进行装车扫描,发往:辽宁大连分拨中心"
},
{
"time": "2019-12-30 01:18:48",
"status": "北京分拨中心进行中转集包扫描,发往:辽宁大连分拨中心"
},
{
"time": "2019-12-30 01:09:00",
"status": "北京分拨中心在分拨中心进行称重扫描"
},
{
"time": "2019-12-29 20:34:28",
"status": "北京石景山区金顶街公司进行揽件扫描"
}
],
"deliverystatus": 3,
"issign": 1
}
}
| 代号 | 说明 |
|---|---|
| 201 | 快递单号为空 |
| 202 | 快递公司为空 |
| 203 | 快递公司不存在 |
| 204 | 快递公司识别失败 |
| 205 | 没有信息 |
| 206 | 快递单号错误 |
| 208 | 单号没有信息(扣次数) |
| 209 | 单号没有信息(确定单号没有信息 不扣次数) |
| 220 | 需要收件人/寄件人手机号(顺丰) |
| 代号 | 说明 |
|---|---|
| 101 | APPKEY为空或不存在 |
| 102 | APPKEY已过期 |
| 103 | APPKEY无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP被禁止 |
| 106 | IP请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
| 计次套餐 | 套餐规格 | 价格 | ||
|---|---|---|---|---|
| 免费套餐 | 100次 | 0.00 元 | ≈0元/次 | |
| Level1 | 10000次 | 35.00 元 | ≈0.0035元/次 | |
| Level2 | 20000次 | 69.00 元 | ≈0.00345元/次 | |
| Level3 | 50000次 | 170.00 元 | ≈0.0034元/次 | |
| Level4 | 100000次 | 320.00 元 | ≈0.0032元/次 | |
接口优化,查询速度全面提升,平均耗时0.3秒
接口全面优化升级,提升稳定性、准确性和响应时间。
顺丰查询要求输入快递预留的收/寄件人联系方式的后四位进行验证
增加字段logo,快递公司logo
增加字段typename,快递公司名称


© 2015-2025 杭州极速互联科技有限公司 版权所有 浙ICP备17047587号-4 浙公网安备33010502005096 增值电信业务经营许可证:浙B2-20190875