价格: ¥ 99 积分可抵¥ 1
最后更新: 2019-12-15 20:56:47
演示地址: 无
安装费: 免费
调用地址:http://aliyunapi.trackingmore.com/v2/trackings/realtime
请求方式:POST
返回类型:JSON
API 调用:API 简单身份认证调用方法(APPCODE)展开API 签名认证调用方法(AppKey & AppSecret)
调试工具:去调试
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
Content-Type | STRING | 必选 | 固定值 |
Trackingmore-Api-Key | STRING | 必选 | 从trackingmore获取的API key |
无参数
{
"tracking_number": "LK664578623CN",
"carrier_code": "china-ems"
}
curl -i -X POST 'http://aliyunapi.trackingmore.com/v2/trackings/realtime' -H 'Authorization:APPCODE 你自己的AppCode' -H 'Content-Type:application/json' -H 'Trackingmore-Api-Key:30c6d919-455b-4fb9-b11c-bfa972717dca' --data '{
"tracking_number": "LK664578623CN",
"carrier_code": "china-ems"
}' -H 'Content-Type:application/json; charset=UTF-8'
//根据API的要求,定义相对应的Content-Type
{
"meta": {
"code": 200,
"type": "Success",
"message": "Success"
},
"data": {
"items": [
{
"id": "442f798ea35749e7605d1a73d4181a01",
"tracking_number": "RE113184005HK",
"carrier_code": "hong-kong-post",
"status": "transit",
"original_country": "Hong Kong [CN]",
"destination_country": "Colombia",
"itemTimeLength": null,
"origin_info": {
"weblink": "http://www.hongkongpost.hk/",
"phone": "852 2921 2222",
"carrier_code": "hong-kong-post",
"trackinfo": [
{
"Details": "CO",
"StatusDescription": "The item ( RE113184005HK ) left Hong Kong for its destination on 10-Oct-2015 ",
"Date": "2015-10-09 00:00"
}
]
},
"destination_info": {
"weblink": "http://www.4-72.com.co/",
"phone": "(57-1) 4722000",
"carrier_code": "colombia-post",
"trackinfo": [
{
"Date": "2015-10-22 20:52",
"StatusDescription": "DIGITALIZADO",
"Details": "CTP.CENTRO A"
},
{
"Date": "2015-10-22 17:02",
"StatusDescription": "Registro de entrega exitosa",
"Details": ""
},
{
"Date": "2015-10-22 16:55",
"StatusDescription": "ENTREGADO",
"Details": "CD.MONTEVIDEO"
},
{
"Date": "2015-10-22 09:31",
"StatusDescription": "REASIGNADO",
"Details": "CD.NORTE"
},
{
"Date": "2015-10-22 08:52",
"StatusDescription": "REASIGNADO",
"Details": "CD.NORTE"
},
{
"Date": "2015-10-22 02:39",
"StatusDescription": "En proceso",
"Details": "CTP.CENTRO A"
},
{
"Date": "2015-10-21 16:36",
"StatusDescription": "En proceso",
"Details": "CTP.CENTRO A"
},
{
"Date": "2015-10-20 06:29",
"StatusDescription": "Envío Recibido en la oficina de cambio internacional",
"Details": "COBOGC"
}
]
}
}
]
}
}
无数据
错误码 | 错误信息 | 描述 |
---|---|---|
200 | OK | The request was successful (some API calls may return 201 instead). |
201 | Created | The request was successful and a resource was created. |
401 | Unauthorized | Authentication failed or user does not have permissions for the requested operation. |
4001 | Unauthorized | Invalid API key. |
4002 | Unauthorized | API key has been deleted. |
4012 | Bad Request | The request could not be understood or was missing required parameters. |
4013 | Bad Request | Tracking_number is required. |
4014 | Bad Request | The value of `tracking_number` is invalid. |
4015 | Bad Request | The value of `carrier_code` is invalid. |
4016 | Bad Request | Tracking already exists. |
4017 | Bad Request | Tracking does not exist. |
4018 | Bad Request | Due to overload risks this feature requires custom activation. Contact service@trackingmore.com for more information. |
4031 | No Content | The request was successful but the response is empty. |
4032 | No Content | Cannot detect courier. |
402 | Payment Required | Payment Required |
403 | Forbidden | Access denied. |
404 | Not Found | Resource was not found. |
405 | Method Not Allowed | Requested method is not supported for the specified resource. |
409 | Conflict | The request could not be completed due to a conflict. |
429 | Too Many Requests | Exceeded API limits. Pause requests, wait two minute, and try again. |
500 | Server error | Server error |
503 | Service Unavailable | Service Unavailable |
0 (0%) 好评 | 0 (0%) 中评 | 0 (0%) 差评 |