安通订舱API
  1. 订舱
安通订舱API
  • 上线接口
    • api账号
      • api登录
      • token验证
    • 基础数据
      • 地址信息保存新增
      • 用户地址列表查询
      • 获取港口信息
      • 获取区县信息
      • 获取城市信息
      • 获取省份列表
      • 获取街道信息
      • 获取区域范围
      • 获取货物信息列表
      • 网点信息查询
    • 运价
      • 获取指定流向运价(所有箱型)
      • 分页获取运价(海铁联运)
      • 分页获取运价(海运或铁路直发)
    • 航次箱体保险
      • 获取航次箱体保险配置信息
    • 订舱
      • 获取目的港指定车队
        GET
      • 获取船期接口
        GET
      • 计算保险费
        POST
      • 订舱保存
        POST
      • 冷藏品保函上传
        POST
      • 订舱提交
        POST
      • 订舱(费用计算)
        POST
      • 订单列表查询
        POST
      • 删除订单
        GET
      • 获取压年货收完日期
        GET
      • 可压年判断
        GET
    • 运单
      • 运单号/箱号查询
      • 运单信息查询
      • 运单导入箱号
      • 订舱委托书
      • 水路运单
      • 提交拆单申请
      • 查询拆单申请
      • 装箱图片上传
      • 获取装箱图片
    • 积分
      • 客户积分片区卡级查询
      • 积分支出(抵扣)记录
      • 积分收入(订舱积分赠送)查询
      • 用户积分查询
      • 积分抵扣校验
      • 获取订舱预计获赠积分
    • 优惠券
      • 获取“我的优惠券”信息
      • 获取订舱可用优惠券
      • 优惠券可用订舱流向查询
      • 优惠券使用记录
    • 提箱申请
      • 可提箱列表
      • 提箱申请
      • 提箱申请结果查询
    • 货物跟踪
      • 货物跟踪 - 根据运单号获取所有货物跟踪信息
      • 运单获取船期
      • 获取箱轨迹信息
      • 货物跟踪 - 根据箱号查询
  1. 订舱

获取船期接口

GET
/api/freight/getShipSchlList
获取船期接口对应订舱网订舱填写表单前勾选船期数据

请求参数

Query 参数
fromPort
string 
可选
起始港ID,调用“获取港口信息/api/basedata/getPortList”获取
fromPortName
string 
可选
起始港名称。起始港ID、起始港名称填写其中一个,不能同时为空
示例值:
上海
toPort
string 
可选
目的港ID,调用“获取港口信息/api/basedata/getPortList”获取
toPortName
string 
可选
目的港名称。目的港ID、目的港名称填写其中一个,不能同时为空
示例值:
四会南江
pathid
string 
可选
非必填,如果该航线为海铁联运,则传入:海铁路径ID(调用'分页获取运价(海铁联运)/api/freight/pageSeaRailwayPrices'获取海铁路径ID)
示例值:
vjAAAMvg5H5qrZRc
Header 参数
token
string 
token令牌
必需
示例值:
{{token}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://222.79.247.164:8081/api/freight/getShipSchlList?fromPort=&fromPortName=上海&toPort=&toPortName=四会南江&pathid=vjAAAMvg5H5qrZRc' \
--header 'token: {{token}}'

返回响应

🟢200成功
application/json
Body
status_code
integer 
必需
state
string 
必需
状态(ok=成功,fail=失败)
list
array [object {19}] 
返回数据集
必需
shipSchlID
string 
船期ID
必需
shipID
null 
船舶ID
必需
shipSchlName
string 
船名/航次
必需
flowPath
string 
航线路径
必需
boxPath
string 
箱路径
必需
eta
string 
预计抵港时间
必需
ata
null 
必需
etd
string 
预计开航时间
必需
atd
null 
必需
stock20
integer 
必需
stock40
integer 
必需
vesselType
null 
船舶类型
必需
currentPort
null 
必需
currentPortNumber
null 
必需
currentPortID
null 
必需
votage
string 
航次
必需
endPortEta
string 
预计抵港时间
必需
shipEnglishName
string 
船舶英文名称
必需
mainFlowPath
string 
干线路径
必需
示例
{
    "status_code": 200,
    "state": "ok",
    "list": [
        {
            "shipSchlID": "vjAAAaCZMKqCq9xE",
            "shipID": null,
            "shipSchlName": "安盛25/2310SS",
            "shipEnglishName": "AN SHENG 25",
            "flowPath": "上海-广澳",
            "mainFlowPath": "上海-广澳",
            "boxPath": "上海-广澳",
            "eta": "2023-04-23 20:00:00",
            "ata": null,
            "etd": "2023-04-22 16:00:00",
            "atd": null,
            "endPortEta": "",
            "stock20": 342,
            "stock40": 138,
            "vesselType": null,
            "currentPort": null,
            "currentPortNumber": null,
            "currentPortID": null,
            "votage": "2310SS"
        },
        {
            "shipSchlID": "vjAAAZ6suz2Cq9xE",
            "shipID": null,
            "shipSchlName": "安盛19/2316S",
            "shipEnglishName": "AN SHENG 19",
            "flowPath": "上海-广澳",
            "mainFlowPath": "上海-广澳",
            "boxPath": "上海-广澳",
            "eta": "2023-04-27 23:44:00",
            "ata": null,
            "etd": "2023-04-27 05:44:00",
            "atd": null,
            "endPortEta": "",
            "stock20": 141,
            "stock40": 103,
            "vesselType": null,
            "currentPort": null,
            "currentPortNumber": null,
            "currentPortID": null,
            "votage": "2316S"
        }
    ]
}
修改于 2023-09-19 08:14:13
上一页
获取目的港指定车队
下一页
计算保险费
Built with