alitrip.btrip.open.supplychain.hotel.trade (【商旅】酒店交易查询流水接口)

【商旅】酒店交易查询流水接口——杭州市政府

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
rq OpenApiZzdSearchRq 可选 入参
  • └ thirdpart_corp_id
  • String
  • 必须
  • sfdsdf
  • 第三方企业ID
  • └ order_id
  • Number
  • 可选
  • 1234124324
  • 订单号
  • └ end_date
  • String
  • 可选
  • 2021-04-01 00:00:00
  • 结算结束时间
  • └ page_size
  • Number
  • 必须
  • 100
  • 每页条数
  • └ user_id
  • String
  • 可选
  • dffdss
  • 第三方用户ID
  • └ apply_id
  • Number
  • 可选
  • 212131231
  • 商旅审批单号
  • └ page
  • Number
  • 必须
  • 1
  • 页数
  • └ trade_id
  • String
  • 可选
  • uuyewruwhrwh
  • 交易流水号
  • └ start_date
  • String
  • 可选
  • 2021-04-01 00:00:00
  • 结算开始时间

响应参数

名称 类型 示例值 描述
result HisvResultSupport result 出参
  • └ success
  • Boolean
  • true
  • 是否成功
  • trade_list
  • OpenApiZzdHotelOrderRs []
  • module
  • 出参
  • └ service_fee
  • Number
  • 100
  • 服务费(分)
  • └ refund_service_fee
  • Number
  • 100
  • 退订服务费(分)
  • └ refund_fee
  • Number
  • 100
  • 退票费(分)
  • └ personal_amount
  • Number
  • 100
  • 个人支付(分),当pay_type是个人支付或混合支付时有值
  • └ corp_amount
  • Number
  • 100
  • 企业支付(分),当pay_type是企业支付或混合支付时有值
  • └ amount
  • Number
  • 1000
  • 总结算金额(分)
  • └ settle_type
  • Number
  • 1
  • 结算方式:1:个人现付,2:企业现付,4:企业月结,8、企业预存
  • └ pay_type
  • Number
  • 2
  • 支付类型,0:企业支付,1:个人支付,2.混合支付
  • └ gmt_modified
  • String
  • 2021-04-01 00:00:00
  • 订单状态改变时间
  • └ gmt_create
  • String
  • 2021-04-01 00:00:00
  • 创建时间
  • └ status
  • String
  • 1
  • 订单状态:1, "等待确认";2, "等待付款"; 3, "预订成功";4, "申请退款";5, "退款成功";6, "已关闭";0,"点击详情查看状态";7, "结账成功"; 8, "支付成功";
  • └ apply_title
  • String
  • 审批单名称
  • 申请单标题
  • └ third_part_apply_id
  • String
  • ssfsdfs
  • 第三方申请单id
  • └ apply_id
  • Number
  • 111111
  • 商旅审批单id
  • └ depart_name
  • String
  • 测试部门
  • 部门名称
  • └ user_nick
  • String
  • 测试用户
  • 用户名称
  • └ user_id
  • String
  • testUserId
  • 用户ID
  • └ thirdpart_corp_id
  • String
  • testsdfsf
  • 第三方企业ID
  • └ corp_id
  • String
  • qqwew
  • 商旅企业ID
  • └ order_id
  • Number
  • 7389298237
  • 订单号
  • └ trade_action
  • Number
  • 1
  • 资金流向:1:支出,2:收入
  • └ trade_type
  • Number
  • 1
  • 交易类型:1:酒店费用,2,:"酒店订单服务费",101:酒店退款',102,:"酒店赔付"
  • └ trade_id
  • String
  • 12313132442
  • 第三方交易ID
  • └ currency
  • String
  • CNY
  • 货币种类
  • └ approver
  • String
  • 测试用户
  • 审批人名称,多个/分开
  • └ settlement_batch_no
  • String
  • yyyy-MM-dd HH:mm:ss
  • 结算批次(该订单结算时间)
  • └ travel_standard_amount
  • Number
  • 400
  • 差标
  • └ invoice_id
  • String
  • 12313
  • 商旅发票ID
  • └ invoice_title
  • String
  • 测试发票抬头
  • 发票抬头
  • └ project_code
  • String
  • uiyiuyuiy
  • 项目编号
  • └ project_title
  • String
  • 测试项目
  • 项目名称
  • └ thirdpart_itinerary_id
  • String
  • 2213131
  • 第三方行程单号
  • └ itinerary_no
  • String
  • 213124214
  • 商旅行程单号
  • cost_center_list
  • CostCenterDo []
  • costCenterList
  • 成本中心信息
  • └ cost_center_id
  • Number
  • 123123
  • 商旅成本中心ID
  • └ cost_center_title
  • String
  • 测试成本
  • 成本中心名称
  • └ cost_center_number
  • String
  • oiuouoi
  • 成本中心编号
  • └ third_cost_center_id
  • String
  • sdfssaf
  • 第三方成本中心ID
  • client_info_dos
  • ClientInfoDo []
  • clientInfoDOs
  • 用户信息
  • └ user_id
  • String
  • sdfds
  • 第三方用户ID
  • └ user_name
  • String
  • 测试用户名称
  • 用户名称
  • └ type
  • Number
  • 6
  • 订单类型:1:全额支付、5:到店支付、6:信用住',
  • └ voucher_type
  • Number
  • 11
  • 发票类型。-1 不可开票,1 大发票,2 行程单+航意险发票,5 商旅火车票凭证,11 增值税普通发票,12 增值税专用发票
  • └ check_in_date
  • String
  • 2021-04-01 00:00:00
  • 入住时间
  • └ check_out_date
  • String
  • 2021-04-01 00:00:00
  • 离店时间
  • hotel_info_do
  • HotelInfoDo
  • hotelInfoDO
  • 酒店信息
  • └ hotel_name
  • String
  • 酒店
  • 酒店中文名
  • └ hotel_tel
  • String
  • 131342242
  • 酒店联系方式
  • └ hotel_address
  • String
  • 杭州市
  • 酒店地址
  • └ hotel_city_code
  • String
  • hz
  • 所在城市code
  • └ city
  • String
  • 杭州
  • 城市名称
  • └ star_rating
  • String
  • 4
  • 酒店星级
  • room_info_do
  • RoomInfoDo
  • roomInfoDO
  • 房间信息
  • └ room_name
  • String
  • 标间
  • 房间名称
  • └ room_price
  • Number
  • 100
  • 房间价格(分)
  • └ room_num
  • Number
  • 1
  • 房间数量
  • └ night_number
  • Number
  • 2
  • 总间夜
  • └ currency
  • String
  • CNY
  • 货币种类
  • └ result_code
  • Number
  • 0
  • 错误码
  • └ result_msg
  • String
  • 成功
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripOpenSupplychainHotelTradeRequest req = new AlitripBtripOpenSupplychainHotelTradeRequest();
AlitripBtripOpenSupplychainHotelTradeRequest.OpenApiZzdSearchRq obj1 = new AlitripBtripOpenSupplychainHotelTradeRequest.OpenApiZzdSearchRq();
obj1.setThirdpartCorpId("sfdsdf");
obj1.setOrderId(1234124324L);
obj1.setEndDate("2021-04-01 00:00:00");
obj1.setPageSize(100L);
obj1.setUserId("dffdss");
obj1.setApplyId(212131231L);
obj1.setPage(1L);
obj1.setTradeId("uuyewruwhrwh");
obj1.setStartDate("2021-04-01 00:00:00");
req.setRq(obj1);
AlitripBtripOpenSupplychainHotelTradeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_btrip_open_supplychain_hotel_trade_response>
    <result>
        <success>true</success>
        <trade_list>
            <open_api_zzd_hotel_order_rs>
                <service_fee>100</service_fee>
                <refund_service_fee>100</refund_service_fee>
                <refund_fee>100</refund_fee>
                <personal_amount>100</personal_amount>
                <corp_amount>100</corp_amount>
                <amount>1000</amount>
                <settle_type>1</settle_type>
                <pay_type>2</pay_type>
                <gmt_modified>2021-04-01 00:00:00</gmt_modified>
                <gmt_create>2021-04-01 00:00:00</gmt_create>
                <status>1</status>
                <apply_title>审批单名称</apply_title>
                <third_part_apply_id>ssfsdfs</third_part_apply_id>
                <apply_id>111111</apply_id>
                <depart_name>测试部门</depart_name>
                <user_nick>测试用户</user_nick>
                <user_id>testUserId</user_id>
                <thirdpart_corp_id>testsdfsf</thirdpart_corp_id>
                <corp_id>qqwew</corp_id>
                <order_id>7389298237</order_id>
                <trade_action>1</trade_action>
                <trade_type>1</trade_type>
                <trade_id>12313132442</trade_id>
                <currency>CNY</currency>
                <approver>测试用户</approver>
                <settlement_batch_no>yyyy-MM-dd HH:mm:ss</settlement_batch_no>
                <travel_standard_amount>400</travel_standard_amount>
                <invoice_id>12313</invoice_id>
                <invoice_title>测试发票抬头</invoice_title>
                <project_code>uiyiuyuiy</project_code>
                <project_title>测试项目</project_title>
                <thirdpart_itinerary_id>2213131</thirdpart_itinerary_id>
                <itinerary_no>213124214</itinerary_no>
                <cost_center_list>
                    <cost_center_do>
                        <cost_center_id>123123</cost_center_id>
                        <cost_center_title>测试成本</cost_center_title>
                        <cost_center_number>oiuouoi</cost_center_number>
                        <third_cost_center_id>sdfssaf</third_cost_center_id>
                    </cost_center_do>
                </cost_center_list>
                <client_info_dos>
                    <client_info_do>
                        <user_id>sdfds</user_id>
                        <user_name>测试用户名称</user_name>
                    </client_info_do>
                </client_info_dos>
                <type>6</type>
                <voucher_type>11</voucher_type>
                <check_in_date>2021-04-01 00:00:00</check_in_date>
                <check_out_date>2021-04-01 00:00:00</check_out_date>
                <hotel_info_do>
                    <hotel_name>酒店</hotel_name>
                    <hotel_tel>131342242</hotel_tel>
                    <hotel_address>杭州市</hotel_address>
                    <hotel_city_code>hz</hotel_city_code>
                    <city>杭州</city>
                    <star_rating>4</star_rating>
                </hotel_info_do>
                <room_info_do>
                    <room_name>标间</room_name>
                    <room_price>100</room_price>
                    <room_num>1</room_num>
                    <night_number>2</night_number>
                    <currency>CNY</currency>
                </room_info_do>
            </open_api_zzd_hotel_order_rs>
        </trade_list>
        <result_code>0</result_code>
        <result_msg>成功</result_msg>
    </result>
</alitrip_btrip_open_supplychain_hotel_trade_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

返回
顶部