文档中心 > 综合交通-商家对接

qimen.alitrip.ship.product.querystation (查询出发港口接口)

查询车站接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
city_name String 可选 香港 城市名称
city_code String 可选 810100 城市编码

响应参数

名称 类型 示例值 描述
ret_desc String 成功 返回错误信息
station_list ShipStation [] 港口list
  • └ presell_time
  • Number
  • 120
  • 班次发车前可售时间,单位分钟,不传默认设置为60
  • └ refund_msg
  • String
  • 1
  • 退票提示(1:在线退票 2:不可在线退票 3:不可退票)
  • └ from_station_name
  • String
  • 香港机场海天码头
  • 出发港口名称
  • └ latitude
  • String
  • 32.033114
  • 维度
  • └ sell_end_time
  • String
  • 18:00
  • 网上可售结束时间HH:mm(18:00),不传默认无限制
  • └ is_order_refund
  • Boolean
  • 1
  • 是否按照整个订单退款
  • └ sell_start_time
  • String
  • 05:00
  • 网上可售开始时间HH:mm(06:00),不传默认无限制
  • └ from_station_address
  • String
  • 香港机场海天码头
  • 港口地址
  • └ obtain_voucher
  • String
  • 凭订单号和身份证取票
  • 取票方式(0:凭身份证自助机取票 1:凭取票号取票,2:支持刷身份证乘车,3:-柜台取票,默认为0)
  • └ max_sell_num
  • Number
  • 5
  • 一单最大乘车人数, 不传默认无限制
  • └ city_name
  • String
  • 香港
  • 城市名称
  • └ refund_time
  • Number
  • 120
  • 发车前允许退票时间
  • └ province
  • String
  • 香港
  • 省份名称
  • └ service_price
  • String
  • 100
  • 服务费
  • └ is_refund
  • Boolean
  • 1
  • 是否会允许退票
  • └ support_eticket
  • Boolean
  • true
  • 是否支持电子票
  • └ from_station_code
  • String
  • 123456789
  • 出发港口code
  • └ presell_day
  • Number
  • 7
  • 单位分钟,不传默认设置为60
  • └ longitude
  • String
  • 105.469673
  • 经度
  • └ status
  • Number
  • 1
  • 是否暂停售票,1:可售 0:不可售 不传默认为1
  • └ station_tel
  • String
  • 0592)6209888
  • 联系电话
  • └ open_time
  • String
  • 06:00
  • 营业开始时间
  • └ close_time
  • String
  • 23:59
  • 营业结束
  • └ support_child
  • Boolean
  • 1
  • 是否支持儿童
  • └ support_with_child
  • Boolean
  • 1
  • 是否支持携童
  • └ support_child_rule
  • String
  • xxx
  • 支持儿童票规则
  • └ support_with_child_rule
  • String
  • xxx
  • 支持携童票规则
ret_code String 0 返回错误码
extAttr String {"param":"param"} 扩展属性 json格式
success Boolean true 状态

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AlitripShipProductQuerystationRequest req = new AlitripShipProductQuerystationRequest();
req.setCityName("香港");
req.setCityCode("810100");
AlitripShipProductQuerystationResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<ret_desc>成功</ret_desc>
<station_list>
    <ship_station>
        <presell_time>120</presell_time>
        <refund_msg>1</refund_msg>
        <from_station_name>香港机场海天码头</from_station_name>
        <latitude>32.033114</latitude>
        <sell_end_time>18:00</sell_end_time>
        <is_order_refund>1</is_order_refund>
        <sell_start_time>05:00</sell_start_time>
        <from_station_address>香港机场海天码头</from_station_address>
        <obtain_voucher>凭订单号和身份证取票</obtain_voucher>
        <max_sell_num>5</max_sell_num>
        <city_name>香港</city_name>
        <refund_time>120</refund_time>
        <province>香港</province>
        <service_price>100</service_price>
        <is_refund>1</is_refund>
        <support_eticket>true</support_eticket>
        <from_station_code>123456789</from_station_code>
        <presell_day>7</presell_day>
        <longitude>105.469673</longitude>
        <status>1</status>
        <station_tel>0592)6209888</station_tel>
        <open_time>06:00</open_time>
        <close_time>23:59</close_time>
        <support_child>1</support_child>
        <support_with_child>1</support_with_child>
        <support_child_rule>xxx</support_child_rule>
        <support_with_child_rule>xxx</support_with_child_rule>
    </ship_station>
</station_list>
<ret_code>0</ret_code>
<extAttr>{&quot;param&quot;:&quot;param&quot;}</extAttr>
<success>true</success>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部