Manage your trackings
URI | Method | Description |
---|---|---|
POST /trackings/post | POST | 创建单个运单号 |
GET /trackings/{carrier_code}/{tracking_number} | GET | 列出单个运单号物流信息 |
PUT /trackings/{carrier_code}/{tracking_number} | PUT | 修改单个运单号附加信息。如:订单号,商品标题,快递状态等。 |
DELETE /trackings/{carrier_code}/{tracking_number} | DELETE | 删除单个运单号 |
POST /trackings/batch | POST | 创建多个运单号 |
GET /trackings/get | GET | 获取多个单号的物流信息 |
POST /trackings/updatemore | POST | 修改多个运单号附加信息。如:订单号,商品标题,快递状态等。 |
POST /trackings/delete | POST | 删除多个运单号 |
POST /trackings/realtime | POST | 获取单个运单号实时物流信息 |
POST /trackings/update | POST | 修改运输商简码 |
GET /trackings/getuserinfo | GET | 查询用户剩余额度 |
GET /trackings/getstatusnumber | GET | 获取各个状态的包裹数量 |
POST /trackings/notupdate | POST | 设置部分单号不再更新 |
POST /trackings/remote | POST | 查询收货地址是否偏远 |
POST /trackings/costtime | POST | 获取快递时效结果 |
POST /trackings/aircargo | POST | 获取航空运单编号的跟踪结果 |
Content-Type: application/json
Trackingmore-Api-Key: YOUR_API_KEY
Param | 描述 |
---|---|
tracking_number | 运单号 |
carrier_code |
运输商简码. 检查 运输商简码 |
destination_code (optional) | 目标国家/地区代码 (两个字符). |
title (optional) | 商品标题 |
logistics_channel (optional) | 物流渠道 |
customer_name (optional) | 客户名称. |
customer_email (optional) | 客户邮箱. |
customer_phone (optional) | 客户电话号码. |
order_id (optional) | 订单号. |
order_create_time (optional) | 下单时间(eg:2017/8/27 16:51). |
tracking_ship_date (optional) | 寄件日期,格式为20181001(年月日),部分运输商(如德国邮政)要求填写发件日期才可以查询物流信息,故查询此类运输商时需要传此参数。 |
tracking_postal_code (optional) | 收件地邮编,部分运输商(如Mondial Relay法国快递)要求填写邮编才可以查询物流信息,故查询此类运输商时需要传该参数。 |
tracking_account_number (optional) | 账户号,部分快递要求填写账户号才可以查询物流,故查询此类快递时需要传该参数 |
specialNumberDestination (optional) | 目的国参数,部分运输商要求填写目的国家才可以查询物流,故查询此类快递时需要传该参数 |
lang (optional) | 返回语言类型 (仅当运输商官网支持时有用)。.了解更多信息 |
auto_correct (optional) | 如果将值设置为 1, 系统将不会自动根据单号矫正快递商。. |
comment (optional) | 备注 |
[
{
"tracking_number": "RP893531375SG",
"carrier_code": "singapore-post",
"logistics_channel": "4PX挂号小包",
"customer_phone": "+110110",
"destination_code": "cn",
"title": "title 1",
"customer_email": "[email protected]",
"order_id": "213456",
"comment": "备注",
"order_create_time": "2017/8/27 16:51",
"lang": "en"
},
{
"tracking_number": "LK894734223CN",
"carrier_code": "china-ems",
"logistics_channel": "4PX挂号小包",
"customer_phone": "+22222222",
"destination_code": "cn",
"title": "title 1",
"customer_email": "[email protected]",
"order_id": "213456",
"comment": "备注",
"order_create_time": "2017/8/27 16:51",
"lang": "en"
}
]
201
{
"meta": {
"code": 201,
"type": "Created",
"message": "The request was successful and a resource was created."
},
"data": {
"submitted": 2,
"added": 0,
"trackings": [],
"errors": [{
"tracking_number": "RP893531375SG",
"carrier_code": "singapore-post",
"code": 4016,
"message": "Tracking already exists."
}, {
"tracking_number": "LK894734223CN",
"carrier_code": "china-ems",
"code": 4016,
"message": "Tracking already exists."
}]
}
}
200
{
"meta": {
"code": 200,
"type": "Success",
"message": "Success"
},
"data": {
"submitted": 2,
"added": 2,
"trackings": [{
"id": "ec6150c0b7557eb3131578640e04f798",
"tracking_number": "RP893531375SG",
"carrier_code": "singapore-post",
"order_create_time": "2017\/8\/27 16:51",
"status": "pending",
"created_at": "2018-04-18T07:26:14+00:00",
"customer_email": "[email protected]",
"customer_name": null,
"customer_phone": "+110110",
"order_id": "213456",
"comment": "备注",
"title": "title 1"
"logistics_channel": "4PX挂号小包"
}, {
"id": "bca8dab58bac35e0658f93c09e8092ac",
"tracking_number": "LK894734223CN",
"carrier_code": "china-ems",
"order_create_time": "2017\/8\/27 16:51",
"status": "pending",
"created_at": "2018-04-18T07:26:14+00:00",
"customer_email": "[email protected]",
"customer_name": null,
"customer_phone": "+22222222",
"order_id": "213456",
"comment": "备注",
"title": "title 1"
"logistics_channel": "4PX挂号小包"
}]
}
}