alitrip.btrip.corpop.commonapply.get (商旅审批单通用查询接口)

商旅审批单通用查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
rq OpenIsvSearchRQ 必须 请求入参
  • └ apply_id
  • Number
  • 必须
  • 23456
  • 商旅审批单id
  • └ corp_id
  • String
  • 必须
  • sdfgh
  • 第三方企业id
  • └ biz_category
  • Number
  • 必须
  • 3
  • 业务类型,5:机票改签审批 6:机票退票审批

响应参数

名称 类型 示例值 描述
result HisvResult result 出参对象
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ result_code
  • Number
  • 0
  • 错误码
  • └ result_msg
  • String
  • 成功
  • 错误信息
  • module
  • OpenIsvApplyRS
  • module
  • 审批单对象
  • └ corp_id
  • String
  • asdfg
  • 商旅企业id
  • └ apply_id
  • Number
  • 1234
  • 商旅审批单id
  • └ status
  • Number
  • 0
  • 审批单状态 0:审批中 1:已同意 2:已拒绝
  • └ trip_cause
  • String
  • 出差
  • 出差原因
  • └ biz_category
  • Number
  • 3
  • 审批类型(5:机票改签审批、6:机票退票审批、3:超标审批)
  • └ user_id
  • String
  • weifeng
  • 第三方用户id
  • └ gmt_create
  • Date
  • 2021-07-08 15:23:56
  • 审批单提交时间
  • └ thirdpart_corp_id
  • String
  • test_corp
  • 第三方企业id
  • └ thirdpart_id
  • String
  • 0001A1100000007EX08O
  • 第三方出差审批单号
  • └ extend_value
  • String
  • 改签: { "changeFee": 100, "orderPrice": 1000, "changeUpgradeFee": 1000, "itineraryId": "fc2824e458a140b5b950001bc51bcc54-8", "changeReason": "机票改签测试11302052", "changeFlightOrders": [{ "arrTime": 1639008600000, "depTime": 1639000200000, "flightNo": "GJ8988", "arrCityName": "杭州", "depCityName": "北京", "passengerInfos": [{ "id": 993146468, "cabin": "Y", "discount": 10, "changeFee": 100, "cabinClass": "2", "cabinClassStr": "经济舱", "passengerName": "方敏" }] }], "originFlightOrders": [{ "arrTime": 1638923400000, "depTime": 1638915600000, "flightNo": "MU8477", "arrCityName": "杭州", "depCityName": "北京", "passengerInfos": [{ "id": 993146468, "cabin": "Y", "discount": 0.1, "changeFee": 100, "cabinClass": "2", "cabinClassStr": "经济舱", "passengerName": "方敏" }] }], "cabinAndDiscountDesc": "可订经济舱2.0折及以下" } 退票: { "refundFee": 7000, "refundPrice": 1000, "itineraryId": "fc2824e458a140b5b950001bc51bcc54-8", "refundReason": "瓦房测试", "originFlightOrders": [{ "arrTime": 1638374400000, "depTime": 1638397200000, "flightNo": "MU8477", "arrCityName": "杭州", "depCityName": "北京", "passengerInfos": [{ "id": 281825548, "cabin": "Y", "discount": 0, "refundFee": 500, "cabinClass": 2, "cabinClassStr": "全价经济舱", "passengerName": "方敏" }] }] }
  • 审批单扩展信息
  • └ cause
  • String
  • 改签
  • 申请理由

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripCorpopCommonapplyGetRequest req = new AlitripBtripCorpopCommonapplyGetRequest();
AlitripBtripCorpopCommonapplyGetRequest.OpenIsvSearchRQ obj1 = new AlitripBtripCorpopCommonapplyGetRequest.OpenIsvSearchRQ();
obj1.setApplyId(23456L);
obj1.setCorpId("sdfgh");
obj1.setBizCategory(3L);
req.setRq(obj1);
AlitripBtripCorpopCommonapplyGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_btrip_corpop_commonapply_get_response>
    <result>
        <success>true</success>
        <result_code>0</result_code>
        <result_msg>成功</result_msg>
        <module>
            <corp_id>asdfg</corp_id>
            <apply_id>1234</apply_id>
            <status>0</status>
            <trip_cause>出差</trip_cause>
            <biz_category>3</biz_category>
            <user_id>weifeng</user_id>
            <gmt_create>2021-07-08 15:23:56</gmt_create>
            <thirdpart_corp_id>test_corp</thirdpart_corp_id>
            <thirdpart_id>0001A1100000007EX08O</thirdpart_id>
            <extend_value>改签: {   &quot;changeFee&quot;: 100,   &quot;orderPrice&quot;: 1000, &quot;changeUpgradeFee&quot;: 1000, &quot;itineraryId&quot;: &quot;fc2824e458a140b5b950001bc51bcc54-8&quot;,   &quot;changeReason&quot;: &quot;机票改签测试11302052&quot;,   &quot;changeFlightOrders&quot;: [{     &quot;arrTime&quot;: 1639008600000,     &quot;depTime&quot;: 1639000200000,     &quot;flightNo&quot;: &quot;GJ8988&quot;,     &quot;arrCityName&quot;: &quot;杭州&quot;,     &quot;depCityName&quot;: &quot;北京&quot;,     &quot;passengerInfos&quot;: [{       &quot;id&quot;: 993146468,       &quot;cabin&quot;: &quot;Y&quot;,       &quot;discount&quot;: 10,       &quot;changeFee&quot;: 100,       &quot;cabinClass&quot;: &quot;2&quot;,       &quot;cabinClassStr&quot;: &quot;经济舱&quot;,       &quot;passengerName&quot;: &quot;方敏&quot;     }]   }],   &quot;originFlightOrders&quot;: [{     &quot;arrTime&quot;: 1638923400000,     &quot;depTime&quot;: 1638915600000,     &quot;flightNo&quot;: &quot;MU8477&quot;,     &quot;arrCityName&quot;: &quot;杭州&quot;,     &quot;depCityName&quot;: &quot;北京&quot;,     &quot;passengerInfos&quot;: [{       &quot;id&quot;: 993146468,       &quot;cabin&quot;: &quot;Y&quot;,       &quot;discount&quot;: 0.1,       &quot;changeFee&quot;: 100,       &quot;cabinClass&quot;: &quot;2&quot;,       &quot;cabinClassStr&quot;: &quot;经济舱&quot;,       &quot;passengerName&quot;: &quot;方敏&quot;     }]   }],   &quot;cabinAndDiscountDesc&quot;: &quot;可订经济舱2.0折及以下&quot; }     退票: {   &quot;refundFee&quot;: 7000,   &quot;refundPrice&quot;: 1000, &quot;itineraryId&quot;: &quot;fc2824e458a140b5b950001bc51bcc54-8&quot;,   &quot;refundReason&quot;: &quot;瓦房测试&quot;,   &quot;originFlightOrders&quot;: [{     &quot;arrTime&quot;: 1638374400000,     &quot;depTime&quot;: 1638397200000,     &quot;flightNo&quot;: &quot;MU8477&quot;,     &quot;arrCityName&quot;: &quot;杭州&quot;,     &quot;depCityName&quot;: &quot;北京&quot;,     &quot;passengerInfos&quot;: [{       &quot;id&quot;: 281825548,       &quot;cabin&quot;: &quot;Y&quot;,       &quot;discount&quot;: 0,       &quot;refundFee&quot;: 500,       &quot;cabinClass&quot;: 2,       &quot;cabinClassStr&quot;: &quot;全价经济舱&quot;,       &quot;passengerName&quot;: &quot;方敏&quot;     }]   }] }</extend_value>
            <cause>改签</cause>
        </module>
    </result>
</alitrip_btrip_corpop_commonapply_get_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

返回
顶部