Trackingeyes数据接口
  1. 海运跟踪
Trackingeyes数据接口
  • 通用接口
    • 获取token
      POST
    • 获取云当港口支持代码
      GET
  • 海运数据接口
    • 海运跟踪
      • 海运状态码
      • 海运支持清单
      • 批量运单订阅接口
        POST
      • 推送运单动态接口
        POST
      • 下载运单详情接口
        GET
    • 港区数据
      • 港区支持清单
      • 港区数据订阅接口
      • 港区数据推送接口
      • 港区数据下载接口
    • 集装箱轨迹
      • 集装箱轨迹接口
    • 船舶AIS
      • 单船搜索接口
      • 船舶定位接口
      • 船舶历史挂港接口
      • 船舶轨迹接口
    • 船舶计划
      • 口岸支持清单
      • 船舶计划查询接口
    • 船东电商运价
      • 运价支持清单
      • 运价查询接口
  • 船期表接口
    • 港到港船期
      • 船期支持清单
      • 港到港船期查询接口
      • 船期分页推送接口
    • 航线规划路径
      • 航线规划路径接口
    • 航次挂靠路径
      • 航次挂靠路径支持清单
      • 航次挂靠路径查询接口
  • 空运数据接口
    • 空运状态码
    • 空运支持清单
    • 空运跟踪
      • 批量运单订阅接口
      • 推送运单动态接口
      • 批量运单下载接口
  • 陆运数据接口
    • EIR(电子设备交接单)
      • EIR支持清单
      • EIR获取接口
    • 场站数据
      • 场站支持清单
      • 场站数据订阅接口
      • 场站数据推送接口
    • 车辆GPS
      • 车辆定位接口
      • 车辆轨迹接口
  • 关务数据接口
    • 报关状态
      • 报关状态代码表
      • 报关状态订阅接口
      • 报关状态推送接口
      • 下载报关状态接口
    • 舱单数据
      • 舱单数据订阅接口
      • 舱单数据推送接口
  • 快递数据接口
    • 国家、地区ISO Alpha-3代码表
    • 主状态代码表
    • 子状态代码表
    • 承运商代码表
    • 承运商集团表
    • 特殊承运人代码表
    • 快递数据订阅接口
    • 快递数据推送接口
    • 快递数据下载接口
  • 其他接口
    • 通用港杂费
      • 港杂费代码清单
      • 通用港杂费查询接口
    • 操作时间
      • 操作时间查询接口
  1. 海运跟踪

批量运单订阅接口

POST
/api/oceanbill/batchOceanBill
1.中外运(SINO)船东可直接箱号订阅,若提单号订阅,需要提单号+其中一个箱号一起订阅,箱号需要按照指定的Json格式传入到extendNo参数里。
2.订阅综合接口码头箱动态数据时,起运港polCd需上传代码,同时serviceType字段赋值CT。
3.接口不支持只调用码头数据,如需码头数据请使用港区数据接口。
4.每次订阅数量限制30条。

请求参数

Query 参数
companyCode
string 
必需
企业编号(需向云当网申请)
token
string 
必需
获取token接口返回的记录
orgCode
string 
组织代码
可选
Body 参数application/json
array of:
deliveryNo
string 
交货单号
可选
<= 38 字符
orderNo
string 
需货单号
可选
<= 38 字符
localKey
string 
客户本地关键字
可选
唯一值
<= 38 字符
referenceNo
string 
订阅号
必需
<= 32 字符
blType
string 
订阅类型
可选
BL=提单号/BK=订舱号/CN=箱号,空值=自动识别
<= 32 字符
carrierCd
string 
云当船东代码
必需
船东代码参照海运支持清单中云当代码
<= 16 字符
extendNo
object 
扩展数据
可选
如提单订阅SINO,该字段必须传一个箱号才能订阅成功,例如:{"CtnrNo":"BHCU4987386"},字段仅限用于SINO船东
customer
string 
客户
可选
<= 128 字符
etd
string <date-time>
预计开航时间
可选
Datetime类型
polCd
string 
起运港代码
可选
港口代码参照云当港口代码表,订阅码头数据且是出口则必填,且必须为国内港口
<= 8 字符
pol
string 
起运港名称
可选
<= 64 字符
podCd
string 
目的港代码
可选
港口代码参照云当港口代码表,订阅码头数据且是进口则必填,且必须为国内港口
<= 8 字符
pod
string 
目的港名称
可选
<= 64 字符
customerService
string 
商服姓名
可选
<= 128 字符
noticeEmail
string 
通知邮箱
可选
<= 255 字符
remark
string 
备注
可选
如需要备注的内容,填入该字段
<= 255 字符
serviceType
string 
服务类型
可选
C=船东,CT=综合接口
<= 16 字符
deliveryAddress
string 
派送地址
可选
<= 255 字符
estDelTime
string 
预计派送时间
可选
<= 30 字符
actDelTime
string 
实际派送完成时间
可选
<= 30 字符
custReqDate
string 
客户要求交期
可选
<= 30 字符
示例
[
    {
        "deliveryNo": null,
        "orderNo": null,
        "localKey": "",
        "referenceNo": "177QAZAZXTCN0541",
        "blType": "BL",
        "carrierCd": "MSC",
        "extendNo": null,
        "customer": null,
        "polCd": null,
        "customerService": null,
        "noticeEmail": null,
        "remark": null,
        "serviceType": "C",
    },
    {
        "deliveryNo": null,
        "orderNo": null,
        "localKey": "",
        "referenceNo": "SNLFSKALB61601",
        "blType": "BL",
        "carrierCd": "SINO",
        "extendNo": {"CtnrNo":"BHCU4987386"},
        "customer": null,
        "polCd": null,
        "customerService": null,
        "noticeEmail": null,
        "remark": null,
        "serviceType": "C",
    },
    {
        "deliveryNo": null,
        "orderNo": null,
        "localKey": "",
        "referenceNo": "6414918850",
        "blType": "",
        "carrierCd": "COSCO",
        "extendNo": null,
        "customer": null,
        "polCd": null,
        "customerService": null,
        "noticeEmail": null,
        "remark": null,
        "serviceType": "C"
     }
]

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.trackingeyes.com/api/oceanbill/batchOceanBill?companyCode&token&orgCode' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "deliveryNo": null,
        "orderNo": null,
        "localKey": "",
        "referenceNo": "177QAZAZXTCN0541",
        "blType": "BL",
        "carrierCd": "MSC",
        "extendNo": null,
        "customer": null,
        "polCd": null,
        "customerService": null,
        "noticeEmail": null,
        "remark": null,
        "serviceType": "C",
    },
    {
        "deliveryNo": null,
        "orderNo": null,
        "localKey": "",
        "referenceNo": "SNLFSKALB61601",
        "blType": "BL",
        "carrierCd": "SINO",
        "extendNo": {"CtnrNo":"BHCU4987386"},
        "customer": null,
        "polCd": null,
        "customerService": null,
        "noticeEmail": null,
        "remark": null,
        "serviceType": "C",
    },
    {
        "deliveryNo": null,
        "orderNo": null,
        "localKey": "",
        "referenceNo": "6414918850",
        "blType": "",
        "carrierCd": "COSCO",
        "extendNo": null,
        "customer": null,
        "polCd": null,
        "customerService": null,
        "noticeEmail": null,
        "remark": null,
        "serviceType": "C"
     }
]'

返回响应

🟢200成功
application/json
Body
code
integer 
批量订阅状态代码
必需
200=success,300=warning,其他=error
type
string 
批量订阅状态
可选
success、warning、error
<= 32 字符
message
string 
批量订阅提示信息
必需
具体长度视报错信息决定
result
array [object {16}] 
单票详情
必需
id
string 
该票关键字
必需
云端返回
<= 40 字符
resultType
string 
单票订阅状态(中文)
可选
订阅成功、订阅失败、订阅中
<= 32 字符
resultTypeCd
string 
单票订阅状态
可选
success=订阅成功、error=订阅失败、booking=订阅中、warning=订阅提醒
<= 32 字符
error
enum<string> 
错误代码
可选
<= 255 字符
枚举值:
410141024103410451016101
errorMessage
string 
错误描述
可选
deliveryNo
string 
交货单号
可选
<= 38 字符
orderNo
string 
需货单号
可选
<= 600 字符
localKey
string 
该票关键字
可选
唯一值,客户端上传,推送时可返回
<= 38 字符
referenceNo
string 
订阅单号
可选
提单号、订舱号、箱号
<= 32 字符
ctnrNo
string 
箱号
可选
<= 12 字符
carrierCd
string 
云当船东代码
可选
<= 16 字符
billCreateTime
string <date-time>
运单创建时间
可选
订阅成功才有创建时间
trackStatusCd
string 
跟踪状态
可选
T=跟踪中、F=订阅失败
<= 2 字符
trackStatus
string 
跟踪状态中文描述
可选
<= 12 字符
errorStatus
string 
异常状态
可选
T=提示、E=错误,空值
<= 20 字符
dataStatus
string 
数据状态
可选
<= 20 字符
time
string <date-time>
请求时间
必需
示例
{
    "code": 200,
    "type": "success",
    "message": "",
    "result": [
        {
            "resultType": "订阅成功",
            "resultTypeCd": "success",
            "error": "",
            "id": "627472342581317",
            "deliveryNo": null,
            "orderNo": null,
            "localKey": null,
            "referenceNo": "278342554",
            "ctnrNo": null,
            "carrierCd": "MSK",
            "trackStatus": "跟踪中",
            "trackStatusCd": "T",
            "errorMessage": "",
            "errorStatus": "T",
            "billCreateTime": "2024-12-28 11:31:32",
            "dataStatus": null
        }
    ],
    "time": "2024-12-28 11:31:32"
}
上一页
海运支持清单
下一页
推送运单动态接口
Built with