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

alitrip.futurehotel.hasettlement.activity.type (获取活动类型)

获取活动类型

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_sum_bill_request SumBillRequest 可选 req
  • └ activity_id
  • Number
  • 必须
  • 111
  • 活动ID
  • └ bill_types
  • String []
  • 可选
  • [1]
  • 分帐单类型
  • └ company_id
  • Number
  • 可选
  • 111
  • 公司id
  • └ create_time_end
  • String
  • 可选
  • 2020-11-30 10:24:40
  • 创建结束时间
  • └ create_time_start
  • String
  • 可选
  • 2020-11-30 10:24:40
  • 创建开始时间
  • └ group_flag
  • Boolean
  • 可选
  • false
  • 是否是集团用户登录
  • └ group_id
  • Number
  • 可选
  • 1
  • 集团id
  • └ limit
  • Number
  • 可选
  • 1
  • 前端分页
  • └ op_platform_enum
  • Number
  • 可选
  • 1
  • 请求来源
  • └ operator
  • String
  • 可选
  • test
  • 操作人nick
  • └ order_types
  • String []
  • 可选
  • [1]
  • 订单类型
  • └ settle_in_id
  • Number
  • 可选
  • 1
  • 主体id
  • └ start
  • Number
  • 可选
  • 1
  • 从1开始

响应参数

名称 类型 示例值 描述
result GetActivityTypeResponse {} res
  • activity_types
  • Activitytypes
  • {}
  • 活动类型
  • └ empty
  • Boolean
  • false
  • 是否为空
  • └ activity_type
  • String
  • activityType
  • activityType
  • └ code
  • String
  • 1
  • code
  • └ error_msg
  • String
  • xxerror
  • 错误msg
  • └ msg
  • String
  • 1
  • msg
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelHasettlementActivityTypeRequest req = new AlitripFuturehotelHasettlementActivityTypeRequest();
AlitripFuturehotelHasettlementActivityTypeRequest.SumBillRequest obj1 = new AlitripFuturehotelHasettlementActivityTypeRequest.SumBillRequest();
obj1.setActivityId(111L);
obj1.setBillTypes("1");
obj1.setCompanyId(111L);
obj1.setCreateTimeEnd("2020-11-30 10:24:40");
obj1.setCreateTimeStart("2020-11-30 10:24:40");
obj1.setGroupFlag(false);
obj1.setGroupId(1L);
obj1.setLimit(1L);
obj1.setOpPlatformEnum(1L);
obj1.setOperator("test");
obj1.setOrderTypes("1");
obj1.setSettleInId(1L);
obj1.setStart(1L);
req.setParamSumBillRequest(obj1);
AlitripFuturehotelHasettlementActivityTypeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_hasettlement_activity_type_response>
    <result>
        <activity_types>
            <empty>false</empty>
            <activity_type>activityType</activity_type>
        </activity_types>
        <code>1</code>
        <error_msg>xxerror</error_msg>
        <msg>1</msg>
        <success>true</success>
    </result>
</alitrip_futurehotel_hasettlement_activity_type_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

返回
顶部