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

alibaba.alsc.crm.point.rule.get (查询积分规则)

新增积分规则查询接口,传入includeLogicalDelete和maxUpdateTime时走同步下行逻辑不然则走普通积分规则查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_query_point_rule_open_req QueryPointRuleOpenReq 可选 入参
  • └ brand_id
  • String
  • 可选
  • 12313123
  • 品牌id(不能和outbrandid同时为空)
  • └ include_logical_delete
  • Boolean
  • 可选
  • true
  • 是否包含逻辑删除
  • └ level_id
  • String
  • 可选
  • 1231241313
  • 会员等级ID
  • └ max_update_time
  • Date
  • 可选
  • 2019-08-11 17:30:15
  • maxUpdateTime
  • └ out_brand_id
  • String
  • 可选
  • 77653
  • 外部品牌ID(不能和brandid同时为空)
  • └ out_shop_id
  • String
  • 可选
  • 77625212
  • 外部门店ID(不能和shopid同时为空)
  • └ shop_id
  • String
  • 可选
  • 12312313
  • 门店ID(不能和outshopid同时为空)

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 业务执行是否成功
  • result
  • PointRuleOpenInfo
  • 业务结果
  • └ create_by
  • String
  • 12312
  • 创建者
  • └ deleted
  • Boolean
  • true
  • 逻辑删除标志
  • ext_info
  • Extinfo
  • null
  • 扩展信息
  • └ empty
  • Boolean
  • null
  • null
  • └ gmt_create
  • Date
  • 2019-08-08 15:14:21
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-08-08 15:14:21
  • 更新时间
  • └ name
  • String
  • 规则1
  • 规则名称
  • point_addition_rule
  • PointAdditionRuleOpenInfo
  • 积分获取规则
  • allow_pay_methods
  • PayMethodPointAdditionRuleOpenInfo []
  • 可以获取积分的支付方式
  • └ enable
  • Boolean
  • true
  • 是否开启
  • └ method_id
  • String
  • 1231
  • 方法ID
  • └ method_name
  • String
  • 213123
  • 方法名称
  • member_point_addition_rules
  • MemberPointAdditionRuleOpenInfo []
  • 不同会员等级的积分获取规则
  • └ allow_product_type
  • String
  • ALL
  • 允许积分商品的范围
  • └ allow_recharge
  • Boolean
  • true
  • 是否允许储值积分
  • └ consume_money
  • Number
  • 15
  • 消费的现金,单位为元
  • └ enable
  • Boolean
  • true
  • 是否允许获取积分
  • └ level_id
  • String
  • 12354234234234234
  • 会员等级ID
  • └ reward_point
  • Number
  • 20
  • 奖励的积分
  • └ sku_ids
  • String []
  • 123,123,123,
  • 商品SKU_ID列表
  • point_clear_rule
  • PointClearRuleOpenInfo
  • 积分清零规则
  • └ days
  • Number
  • 2
  • 多少天之后清零
  • └ point_clear_rule_type
  • String
  • NO_CLEAR
  • 积分清零规则类型
  • point_deduction_rule
  • PointDeductionRuleOpenInfo
  • 积分扣减规则
  • member_point_deduction_rules
  • MemberPointDeductionRuleOpenInfo []
  • 会员等级维度的积分抵扣规则
  • └ consume_money
  • Number
  • 200
  • 消费的金额
  • └ deducted_point
  • Number
  • 1000
  • 抵扣的积分
  • └ enable
  • Boolean
  • true
  • 是否允许该等级进行积分抵现
  • └ has_upper_limit
  • Boolean
  • false
  • 单次使用是否有抵扣上限
  • └ level_id
  • String
  • 184746326428
  • 会员等级ID
  • └ max_point
  • Number
  • 200
  • 单次使用的抵扣上限
  • └ with_coupon
  • Boolean
  • false
  • 是否与优惠券同享
  • └ rule_id
  • String
  • 725384682735476576471
  • 规则的业务ID
  • └ update_by
  • String
  • 小明
  • 更新者
  • └ update_by_name
  • String
  • 1
  • 更新者姓名
  • └ create_by_name
  • String
  • 1
  • 创建者姓名
  • └ result_code
  • String
  • 200
  • 结果码
  • └ result_desc
  • String
  • 成功
  • 结果描述
  • └ result_view
  • String
  • ""
  • 错误结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmPointRuleGetRequest req = new AlibabaAlscCrmPointRuleGetRequest();
AlibabaAlscCrmPointRuleGetRequest.QueryPointRuleOpenReq obj1 = new AlibabaAlscCrmPointRuleGetRequest.QueryPointRuleOpenReq();
obj1.setBrandId("12313123");
obj1.setIncludeLogicalDelete(true);
obj1.setLevelId("1231241313");
obj1.setMaxUpdateTime(StringUtils.parseDateTime("2019-08-11 17:30:15"));
obj1.setOutBrandId("77653");
obj1.setOutShopId("77625212");
obj1.setShopId("12312313");
req.setParamQueryPointRuleOpenReq(obj1);
AlibabaAlscCrmPointRuleGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_point_rule_get_response>
    <result>
        <biz_success>true</biz_success>
        <result>
            <create_by>12312</create_by>
            <deleted>true</deleted>
            <ext_info>
                <empty>null</empty>
            </ext_info>
            <gmt_create>2019-08-08 15:14:21</gmt_create>
            <gmt_modified>2019-08-08 15:14:21</gmt_modified>
            <name>规则1</name>
            <point_addition_rule>
                <allow_pay_methods>
                    <pay_method_point_addition_rule_open_info>
                        <enable>true</enable>
                        <method_id>1231</method_id>
                        <method_name>213123</method_name>
                    </pay_method_point_addition_rule_open_info>
                </allow_pay_methods>
                <member_point_addition_rules>
                    <member_point_addition_rule_open_info>
                        <allow_product_type>ALL</allow_product_type>
                        <allow_recharge>true</allow_recharge>
                        <consume_money>15</consume_money>
                        <enable>true</enable>
                        <level_id>12354234234234234</level_id>
                        <reward_point>20</reward_point>
                        <sku_ids>
                            <string>123</string>
                            <string>123</string>
                            <string>123</string>
                        </sku_ids>
                    </member_point_addition_rule_open_info>
                </member_point_addition_rules>
            </point_addition_rule>
            <point_clear_rule>
                <days>2</days>
                <point_clear_rule_type>NO_CLEAR</point_clear_rule_type>
            </point_clear_rule>
            <point_deduction_rule>
                <member_point_deduction_rules>
                    <member_point_deduction_rule_open_info>
                        <consume_money>200</consume_money>
                        <deducted_point>1000</deducted_point>
                        <enable>true</enable>
                        <has_upper_limit>false</has_upper_limit>
                        <level_id>184746326428</level_id>
                        <max_point>200</max_point>
                    </member_point_deduction_rule_open_info>
                </member_point_deduction_rules>
                <with_coupon>false</with_coupon>
            </point_deduction_rule>
            <rule_id>725384682735476576471</rule_id>
            <update_by>小明</update_by>
            <update_by_name>1</update_by_name>
            <create_by_name>1</create_by_name>
        </result>
        <result_code>200</result_code>
        <result_desc>成功</result_desc>
        <result_view>&quot;&quot;</result_view>
    </result>
</alibaba_alsc_crm_point_rule_get_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

返回
顶部