欢迎来到淘码网(TMA.CN)

全球快递物流实时查询API

价格: ¥ 99 积分可抵¥ 1

最后更新: 2019-12-15 20:56:47

演示地址:

安装费: 免费

分类
类 型
品 牌
语 言
数据库
是否加密
是否授权
大小
10 MB
发货方式
自动发货
下载方式
远程下载

API接口

trackingmore实时快递查询API

trackingmore实时快递查询API

调用地址:http://aliyunapi.trackingmore.com/v2/trackings/realtime

请求方式:POST

返回类型:JSON

API 调用:API 简单身份认证调用方法(APPCODE)展开API 签名认证调用方法(AppKey & AppSecret)

调试工具:去调试

请求参数(Headers)
名称类型是否必须描述
Content-TypeSTRING必选固定值
Trackingmore-Api-KeySTRING必选从trackingmore获取的API key
请求参数(Query)

无参数

请求参数(Body)
{
  "tracking_number": "LK664578623CN",
  "carrier_code": "china-ems"
}
  • 1
  • 2
  • 3
请求示例
curl
Java
C#
PHP
Python
ObjectC
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
  • 1
  • 2
  • 3
  • 4
  • 5
正常返回示例
{
  "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"
            }
          ]
        }
      }
    ]
  }
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
失败返回示例

无数据

错误码定义
错误码错误信息描述
200OKThe request was successful (some API calls may return 201 instead).
201CreatedThe request was successful and a resource was created.
401UnauthorizedAuthentication failed or user does not have permissions for the requested operation.
4001UnauthorizedInvalid API key.
4002UnauthorizedAPI key has been deleted.
4012Bad RequestThe request could not be understood or was missing required parameters.
4013Bad RequestTracking_number is required.
4014Bad RequestThe value of `tracking_number` is invalid.
4015Bad RequestThe value of `carrier_code` is invalid.
4016Bad RequestTracking already exists.
4017Bad RequestTracking does not exist.
4018Bad RequestDue to overload risks this feature requires custom activation. Contact service@trackingmore.com for more information.
4031No ContentThe request was successful but the response is empty.
4032No ContentCannot detect courier.
402Payment RequiredPayment Required
403ForbiddenAccess denied.
404Not FoundResource was not found.
405Method Not AllowedRequested method is not supported for the specified resource.
409ConflictThe request could not be completed due to a conflict.
429Too Many RequestsExceeded API limits. Pause requests, wait two minute, and try again.
500Server errorServer error
503Service UnavailableService Unavailable
0 (0%)

好评

0 (0%)

中评

0 (0%)

差评

  • 在线客服

    点击这里给我发消息 点击这里给我发消息

    官方微信

    仅处理投诉、举报及平台使用问题;
    商品问题请咨询商家客服!

浏览记录