文档中心 > API类目 > 飞猪-菲住联盟

alitrip.futurehotel.content.intention.add (添加意向酒店信息)

飞猪-菲住联盟,添加意向酒店信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_insert_intention_req InsertIntentionReq 可选 添加意向酒店信息入参
  • └ city_code
  • Number
  • 可选
  • 530900
  • 城市id
  • └ city_name
  • String
  • 可选
  • 临沧市
  • 城市名称
  • └ contact_name
  • String
  • 必须
  • 测试
  • 联系人
  • └ contact_number
  • String
  • 必须
  • 15556789827
  • 联系方式
  • └ district_code
  • Number
  • 可选
  • 530902
  • 行政区id
  • └ district_name
  • String
  • 可选
  • 临翔区
  • 行政区名称
  • └ hotel_name
  • String
  • 必须
  • 菲住
  • 酒店名称
  • └ id
  • Number
  • 必须
  • 2
  • 意向id
  • └ login_user_id
  • String
  • 可选
  • 1
  • 用户ID
  • └ province_code
  • Number
  • 必须
  • 530000
  • 省份id
  • └ province_name
  • String
  • 必须
  • 云南省
  • 省份名称
  • └ type
  • Number
  • 必须
  • 1
  • 意向类型

响应参数

名称 类型 示例值 描述
result InsertIntentionRs 添加意向酒店信息出参
  • └ city_code
  • Number
  • 530900
  • 城市ID
  • └ city_name
  • String
  • 临沧市
  • 城市名称
  • └ contact_name
  • String
  • 测试
  • 联系人
  • └ contact_number
  • String
  • 15556789827
  • 联系方式
  • └ del_flag
  • Number
  • 1
  • 是否删除 0已删除 1未删除
  • └ district_code
  • Number
  • 530902
  • 行政区id
  • └ district_name
  • String
  • 临翔区
  • 行政区名称
  • └ fh_code
  • String
  • 系统错误码
  • └ fh_msg
  • String
  • 系统错误信息
  • └ fh_success
  • Boolean
  • true
  • 接口是否成功
  • └ gmt_create
  • String
  • 2019-07-15 17:41:56
  • 创建时间
  • └ gmt_modified
  • String
  • 2019-07-15 17:41:56
  • 修改时间
  • └ hotel_name
  • String
  • 菲住
  • 酒店名称
  • └ id
  • Number
  • 2
  • 意向id
  • └ province_code
  • Number
  • 530000
  • 省份id
  • └ province_name
  • String
  • 云南省
  • 省份名称
  • └ type
  • Number
  • 1
  • 意向类型

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelContentIntentionAddRequest req = new AlitripFuturehotelContentIntentionAddRequest();
AlitripFuturehotelContentIntentionAddRequest.InsertIntentionReq obj1 = new AlitripFuturehotelContentIntentionAddRequest.InsertIntentionReq();
obj1.setCityCode(530900L);
obj1.setCityName("临沧市");
obj1.setContactName("测试");
obj1.setContactNumber("15556789827");
obj1.setDistrictCode(530902L);
obj1.setDistrictName("临翔区");
obj1.setHotelName("菲住");
obj1.setId(2L);
obj1.setLoginUserId("1");
obj1.setProvinceCode(530000L);
obj1.setProvinceName("云南省");
obj1.setType(1L);
req.setParamInsertIntentionReq(obj1);
AlitripFuturehotelContentIntentionAddResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_content_intention_add_response>
    <result>
        <city_code>530900</city_code>
        <city_name>临沧市</city_name>
        <contact_name>测试</contact_name>
        <contact_number>15556789827</contact_number>
        <del_flag>1</del_flag>
        <district_code>530902</district_code>
        <district_name>临翔区</district_name>
        <fh_code></fh_code>
        <fh_msg></fh_msg>
        <fh_success>true</fh_success>
        <gmt_create>2019-07-15 17:41:56</gmt_create>
        <gmt_modified>2019-07-15 17:41:56</gmt_modified>
        <hotel_name>菲住</hotel_name>
        <id>2</id>
        <province_code>530000</province_code>
        <province_name>云南省</province_name>
        <type>1</type>
    </result>
</alitrip_futurehotel_content_intention_add_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

返回
顶部