文档中心 > API类目 > 本地生活API

alibaba.alsc.crm.rule.queryoptplan (查询运营计划)

查询运营计划

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
plan_rule_query_open_request PlanRuleQueryOpenReq 必须 请求参数
  • └ deleted
  • Boolean
  • 必须
  • true
  • 是否包含已逻辑删除的数据
  • └ last_id
  • String
  • 可选
  • 111111
  • 上次更新的最后一个ID
  • └ page_size
  • Number
  • 必须
  • 111111
  • 每页大小,默认20
  • └ last_update_time
  • Date
  • 可选
  • 2019-01-01 11:11:11
  • 最后更新时间
  • └ brand_id
  • String
  • 可选
  • 111111
  • 品牌ID
  • └ out_brand_id
  • String
  • 可选
  • 111111
  • 外部品牌ID

响应参数

名称 类型 示例值 描述
result CommonPageResult 111111 请求参数
  • result_list
  • OptPlanOpenInfo []
  • 111111
  • 运营计划列表
  • └ opt_plan_id
  • String
  • 111111
  • 运营计划id
  • └ opt_plan_name
  • String
  • 111111
  • 运营计划名称
  • └ remark
  • String
  • 111111
  • 备注
  • └ opt_plan_type
  • Number
  • 200-礼品卡
  • 运营计划类型
  • └ recharge_rule_id
  • String
  • 111111
  • 储值规则Id
  • └ recharge_rule_name
  • String
  • 111111
  • 储值规则名称
  • └ point_rule_id
  • String
  • 111111
  • 积分规则Id
  • └ point_rule_name
  • String
  • 111111
  • 积分规则名称
  • └ apply_shop_count
  • Number
  • 111111
  • 适用门店数
  • shop_group_info
  • ShopGroupOpenInfo
  • 111111
  • 门店组信息
  • └ shop_ids
  • String []
  • 111111
  • 门店id
  • └ shop_group_id
  • String
  • 111111
  • 门店组id
  • └ shop_group_type
  • Number
  • 400-会员运营计划迁移组
  • 门店组类型
  • └ opt_plan_id
  • String
  • 111111
  • 运营计划id
  • └ out_shop_ids
  • String []
  • 外部门店ID
  • └ gmt_create
  • Date
  • 2019-01-01 11:11:11
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-01-01 11:11:11
  • 更新时间
  • └ create_by
  • String
  • 111111
  • 创建者
  • └ update_by
  • String
  • 111111
  • 更新者
  • └ deleted
  • Boolean
  • true
  • 逻辑删除标志
  • └ page_size
  • Number
  • 111111
  • 当前每页显示数量(原样传出)
  • └ current_page
  • Number
  • 111111
  • 当前页码(原样传出)
  • └ total_size
  • Number
  • 111111
  • 总共记录数
  • └ biz_success
  • Boolean
  • true
  • 业务执行是否成功
  • └ result_code
  • String
  • 111111
  • 结果码
  • └ result_desc
  • String
  • 111111
  • 结果描述
  • └ result_view
  • String
  • 111111
  • 错误结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmRuleQueryoptplanRequest req = new AlibabaAlscCrmRuleQueryoptplanRequest();
AlibabaAlscCrmRuleQueryoptplanRequest.PlanRuleQueryOpenReq obj1 = new AlibabaAlscCrmRuleQueryoptplanRequest.PlanRuleQueryOpenReq();
obj1.setDeleted(true);
obj1.setLastId("111111");
obj1.setPageSize(111111L);
obj1.setLastUpdateTime(StringUtils.parseDateTime("2019-01-01 11:11:11"));
obj1.setBrandId("111111");
obj1.setOutBrandId("111111");
req.setPlanRuleQueryOpenRequest(obj1);
AlibabaAlscCrmRuleQueryoptplanResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_rule_queryoptplan_response>
    <result>
        <result_list>
            <opt_plan_open_info>
                <opt_plan_id>111111</opt_plan_id>
                <opt_plan_name>111111</opt_plan_name>
                <remark>111111</remark>
                <opt_plan_type>200-礼品卡</opt_plan_type>
                <recharge_rule_id>111111</recharge_rule_id>
                <recharge_rule_name>111111</recharge_rule_name>
                <point_rule_id>111111</point_rule_id>
                <point_rule_name>111111</point_rule_name>
                <apply_shop_count>111111</apply_shop_count>
                <shop_group_info>
                    <shop_ids>
                        <string>111111</string>
                    </shop_ids>
                    <shop_group_id>111111</shop_group_id>
                    <shop_group_type>400-会员运营计划迁移组</shop_group_type>
                    <opt_plan_id>111111</opt_plan_id>
                    <out_shop_ids>
                        <string></string>
                    </out_shop_ids>
                </shop_group_info>
                <gmt_create>2019-01-01 11:11:11</gmt_create>
                <gmt_modified>2019-01-01 11:11:11</gmt_modified>
                <create_by>111111</create_by>
                <update_by>111111</update_by>
                <deleted>true</deleted>
            </opt_plan_open_info>
        </result_list>
        <page_size>111111</page_size>
        <current_page>111111</current_page>
        <total_size>111111</total_size>
        <biz_success>true</biz_success>
        <result_code>111111</result_code>
        <result_desc>111111</result_desc>
        <result_view>111111</result_view>
    </result>
</alibaba_alsc_crm_rule_queryoptplan_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

返回
顶部