• 快递物流查询API接口
快递查询接口是指快递查询网对外开放的应用程序接口,开发人员能够通过调用该接口与快递查询网进行交互,并基于该接口开发自己的快递查询应用程序。
• 应用场景
① 买家物流查询:轨迹跟踪、包裹进度、预计送达时间、派送人联系方式等。
② 卖家物流跟踪:是否超区、转件、多次派送、拒收
③ 平台监控管理:假交易监控、匹配卖家发货与顾客确认收货时间。
示例:
源码地址:快递查询api接口地址
接口示例图:
使用方法:
安装:
composer require zhenge/kdniao
配置:
在.env文件中添加KDNIAO_EBUSSINESSID=KDNIAO_APPKEY=
注册服务:
在config/app.php中Zhenge\Kdniao\KdniaoServiceProvider::class,'Kdniao'=>Zhenge\Kdniao\Facades\Kdniao::class,
请求示例:
{"OrderCode": "","ShipperCode": "SF","LogisticCode": "118650888018"}
返回示例:
没有物流轨迹的{"EBusinessID": "1109259","Traces": [],"OrderCode": "","ShipperCode": "SF","LogisticCode": "118461988807","Success": false,"Reason": null}有物流轨迹的{"EBusinessID": "1109259","OrderCode": "","ShipperCode": "SF","LogisticCode": "118461988807","Success": true,"State": 3,"Reason": null,"Traces": [{"AcceptTime": "/06/25 08:05:37","AcceptStation": "正在派件..(派件人:邓裕富,电话:18718866310)[深圳 市]","Remark": null},{"AcceptTime": "/06/25 04:01:28","AcceptStation": "快件在 深圳集散中心 ,准备送往下一站 深圳 [深圳市]","Remark": null},{"AcceptTime": "/06/25 01:41:06","AcceptStation": "快件在 深圳集散中心 [深圳市]","Remark": null},{"AcceptTime": "/06/24 20:18:58","AcceptStation": "已收件[深圳市]","Remark": null},{"AcceptTime": "/06/24 20:55:28","AcceptStation": "快件在 深圳 ,准备送往下一站 深圳集散中心 [深圳市]","Remark": null},{"AcceptTime": "/06/25 10:23:03","AcceptStation": "派件已签收[深圳市]","Remark": null},{"AcceptTime": "/06/25 10:23:03","AcceptStation": "签收人是:已签收[深圳市]","Remark": null}]}
如果觉得《快递物流单号查询api接口PHP快递鸟对接案例》对你有帮助,请点赞、收藏,并留下你的观点哦!