文档中心 > API类目 > 飞猪酒店EBooking

alitrip.hotel.ebooking.already.apply.query (营销上云-营销活动hid报名查询)

判断登入账号授权的hids是不是已经报过名

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
activity_code String 可选 AT_seller_signup_03 招商活动code
hids String [] 可选 [11111,22222]
  • 最大列表长度:20
  • 酒店列表

    响应参数

    名称 类型 示例值 描述
    result TopResultSet result
    • └ results
    • String []
    • true
    • results
    • └ first_result
    • Boolean
    • true
    • firstResult
    • └ total_results
    • Number
    • 1
    • totalResults
    • └ has_next
    • Boolean
    • true
    • hasNext
    • └ error_code
    • String
    • demo
    • errorCode
    • └ warn_message
    • String
    • test
    • warnMessage
    • └ error_msg
    • String
    • demo
    • errorMsg
    • └ success
    • Boolean
    • false
    • success

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlitripHotelEbookingAlreadyApplyQueryRequest req = new AlitripHotelEbookingAlreadyApplyQueryRequest();
    req.setActivityCode("AT_seller_signup_03");
    req.setHids("11111,22222");
    AlitripHotelEbookingAlreadyApplyQueryResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alitrip_hotel_ebooking_already_apply_query_response>
        <result>
            <results>
                <string>true</string>
            </results>
            <first_result>true</first_result>
            <total_results>1</total_results>
            <has_next>true</has_next>
            <error_code>demo</error_code>
            <warn_message>test</warn_message>
            <error_msg>demo</error_msg>
            <success>false</success>
        </result>
    </alitrip_hotel_ebooking_already_apply_query_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

    返回
    顶部