文档中心 > API类目 > 国际机票运价采购

alitrip.aslan.gdsti.pnr.qtb (黑屏QTB低级查询接口)

获取航班舱位等级对应最低价

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_qtb_r_q QtbRq 可选 qtb入参
  • └ business_id
  • Number
  • 必须
  • 123456
  • 业务单号
  • └ cabin_class
  • String
  • 必须
  • First:头等舱,Business:商务舱, Economy:经济舱, EconomyPremium:超级经济舱
  • 舱位等级
  • └ office_no
  • String
  • 必须
  • officeNo
  • officeNo
  • └ pnr_no
  • String
  • 必须
  • PNR
  • PNR
  • └ ticketing_airline
  • String
  • 必须
  • MU
  • 出票航司

响应参数

名称 类型 示例值 描述
result GdstiRs result
  • └ err_code
  • String
  • errCode
  • errCode
  • └ err_msg
  • String
  • errMsg
  • errMsg
  • └ success
  • Boolean
  • true
  • success
  • t
  • QtbRs
  • t
  • └ eterm_data
  • String
  • FSI/BK/PREC S BK 3026/27OCT KIX1800 2010TSN0S 738 *无适用的运价 *SYSTEM DEFAULT-CHECK OPERATING CARRIER *SPECIFIED FARE TYPE IS NOT APPLICABLE RFSONLN/1E /EFEP_10/FCC=D/PAGE 1/1
  • etermData
  • price_info
  • PriceInfo
  • priceInfo
  • └ base_fare
  • String
  • 1430
  • baseFare
  • └ tax_c_n
  • String
  • 190
  • taxCN
  • └ tax_other
  • String
  • 244
  • taxOther
  • └ tax_y_q
  • String
  • 54
  • taxYQ
  • └ total_fare
  • String
  • 1674
  • totalFare
  • └ traveller_type
  • String
  • 1
  • travellerType

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAslanGdstiPnrQtbRequest req = new AlitripAslanGdstiPnrQtbRequest();
AlitripAslanGdstiPnrQtbRequest.QtbRq obj1 = new AlitripAslanGdstiPnrQtbRequest.QtbRq();
obj1.setBusinessId(123456L);
obj1.setCabinClass("First:头等舱,Business:商务舱, Economy:经济舱, EconomyPremium:超级经济舱");
obj1.setOfficeNo("officeNo");
obj1.setPnrNo("PNR");
obj1.setTicketingAirline("MU");
req.setParamQtbRQ(obj1);
AlitripAslanGdstiPnrQtbResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_aslan_gdsti_pnr_qtb_response>
    <result>
        <err_code>errCode</err_code>
        <err_msg>errMsg</err_msg>
        <success>true</success>
        <t>
            <eterm_data>FSI/BK/PREC                                                                      S BK  3026/27OCT KIX1800 2010TSN0S    738                                        *无适用的运价                                                                    *SYSTEM DEFAULT-CHECK OPERATING CARRIER                                          *SPECIFIED FARE TYPE IS NOT APPLICABLE                                           RFSONLN/1E /EFEP_10/FCC=D/PAGE 1/1</eterm_data>
            <price_info>
                <base_fare>1430</base_fare>
                <tax_c_n>190</tax_c_n>
                <tax_other>244</tax_other>
                <tax_y_q>54</tax_y_q>
                <total_fare>1674</total_fare>
                <traveller_type>1</traveller_type>
            </price_info>
        </t>
    </result>
</alitrip_aslan_gdsti_pnr_qtb_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

返回
顶部