- 通用接口
- 海运数据接口
- 船期表接口
- 港到港船期
- 航线规划路径
- 航次挂靠路径
- 空运数据接口
- 陆运数据接口
- 关务数据接口
- 快递数据接口
- 其他接口
批量运单订阅接口
POST
/api/oceanbill/batchOceanBill
2.订阅综合接口码头箱动态数据时,起运港polCd需上传代码,同时serviceType字段赋值CT。
3.接口不支持只调用码头数据,如需码头数据请使用港区数据接口。
4.每次订阅数量限制30条。
请求参数
Query 参数
companyCode
string
必需
token
string
必需
orgCode
string
组织代码
Body 参数application/json
array of:
deliveryNo
string
交货单号
<= 38 字符
orderNo
string
需货单号
<= 38 字符
localKey
string
客户本地关键字
<= 38 字符
referenceNo
string
订阅号
<= 32 字符
blType
string
订阅类型
<= 32 字符
carrierCd
string
云当船东代码
<= 16 字符
extendNo
object
扩展数据
customer
string
客户
<= 128 字符
etd
string <date-time>
预计开航时间
polCd
string
起运港代码
<= 8 字符
pol
string
起运港名称
<= 64 字符
podCd
string
目的港代码
<= 8 字符
pod
string
目的港名称
<= 64 字符
customerService
string
商服姓名
<= 128 字符
noticeEmail
string
通知邮箱
<= 255 字符
remark
string
备注
<= 255 字符
serviceType
string
服务类型
<= 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
批量订阅状态代码
type
string
批量订阅状态
<= 32 字符
message
string
批量订阅提示信息
result
array [object {16}]
单票详情