文档中心 > API类目 > 火车票API

taobao.train.agent.freechildrendetail.query.vtwo (免费儿童详情)

免费儿童列表详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
free_children_ticket_detail_rq FreeChildrenTicketDetailRQ 必须 请求参数
  • └ apply_no
  • Number
  • 必须
  • 1234567
  • 申请单号

响应参数

名称 类型 示例值 描述
result TapResult rs
  • └ success
  • Boolean
  • false
  • 结果
  • └ error_code
  • Number
  • -1
  • 失败code
  • └ error_msg
  • String
  • 系统繁忙
  • 失败文案
  • module
  • FreeChildrenTicketDetailRS
  • 返回信息
  • train_info
  • TrainInfo
  • 火车信息
  • └ train_to
  • String
  • 包头
  • 到达站
  • └ train_from
  • String
  • 包头东
  • 出发站
  • └ sequence_no
  • String
  • E12343
  • 票号
  • └ train_date
  • String
  • 2022-03-03 12:12:12
  • 出发时间
  • └ train_no
  • String
  • G204
  • 车次号
  • └ choose_seat
  • String
  • 二等座_05_01C号
  • 坐席信息
  • passenger_info
  • PassengerInfo
  • 成人信息
  • └ certificate_type_code
  • String
  • 1
  • 证件类型
  • └ passenger_name
  • String
  • 测试成人
  • 乘客
  • └ certificate_no
  • String
  • 422311195405061256
  • 证件号
  • free_children_passenger_info
  • PassengerInfo
  • 儿童信息
  • └ certificate_type_code
  • String
  • 1
  • 证件类型
  • └ passenger_name
  • String
  • 测试儿童
  • 乘客
  • └ certificate_no
  • String
  • 422311202205061256
  • 证件号
  • └ operator_type
  • Number
  • 操作类型
  • 操作类型
  • └ apply_no
  • String
  • 12343534
  • 唯一标识
  • └ timeout
  • String
  • 2022-03-03 12:12:12
  • 超时时间
  • └ status
  • Number
  • 10
  • 状态

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TrainAgentFreechildrendetailQueryVtwoRequest req = new TrainAgentFreechildrendetailQueryVtwoRequest();
TrainAgentFreechildrendetailQueryVtwoRequest.FreeChildrenTicketDetailRQ obj1 = new TrainAgentFreechildrendetailQueryVtwoRequest.FreeChildrenTicketDetailRQ();
obj1.setApplyNo(1234567L);
req.setFreeChildrenTicketDetailRq(obj1);
TrainAgentFreechildrendetailQueryVtwoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<train_agent_freechildrendetail_query_vtwo_response>
    <result>
        <success>false</success>
        <error_code>-1</error_code>
        <error_msg>系统繁忙</error_msg>
        <module>
            <train_info>
                <train_to>包头</train_to>
                <train_from>包头东</train_from>
                <sequence_no>E12343</sequence_no>
                <train_date>2022-03-03 12:12:12</train_date>
                <train_no>G204</train_no>
                <choose_seat>二等座_05_01C号</choose_seat>
            </train_info>
            <passenger_info>
                <certificate_type_code>1</certificate_type_code>
                <passenger_name>测试成人</passenger_name>
                <certificate_no>422311195405061256</certificate_no>
            </passenger_info>
            <free_children_passenger_info>
                <certificate_type_code>1</certificate_type_code>
                <passenger_name>测试儿童</passenger_name>
                <certificate_no>422311202205061256</certificate_no>
            </free_children_passenger_info>
            <operator_type>操作类型</operator_type>
            <apply_no>12343534</apply_no>
            <timeout>2022-03-03 12:12:12</timeout>
            <status>10</status>
        </module>
    </result>
</train_agent_freechildrendetail_query_vtwo_response>

异常示例

  • 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

返回
顶部