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

alibaba.alsc.crm.point.extra.consume (积分补扣)

积分补扣

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_extra_consume_point_open_req ExtraConsumePointOpenReq 可选 入参
  • └ biz_channel
  • String
  • 必须
  • CS
  • CS是辰森,KRY是客如云
  • └ brand_id
  • String
  • 可选
  • 32132
  • 品牌id
  • └ change_point
  • Number
  • 必须
  • 323
  • 变更积分数
  • └ customer_id
  • String
  • 必须
  • 7027365982937563912722
  • 顾客id
  • └ operator_id
  • String
  • 必须
  • 33322123
  • 操作人ID
  • └ out_biz_id
  • String
  • 必须
  • 3231231312312
  • 关联交易号/订单号
  • └ reason
  • String
  • 可选
  • 积分补扣原因
  • 变更理由
  • └ request_id
  • String
  • 必须
  • 323412
  • 请求id,用来做幂等
  • └ shop_id
  • String
  • 可选
  • 3332312
  • 门店id
  • └ out_shop_id
  • String
  • 可选
  • 435632
  • 外部门店ID,shop_id和out_shop_id不可同时为空
  • └ out_brand_id
  • String
  • 可选
  • 33959
  • 外部品牌id,brandId与out_brand_id不可同时为空

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • └ result
  • String
  • 333213123
  • 业务数据
  • └ 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);
AlibabaAlscCrmPointExtraConsumeRequest req = new AlibabaAlscCrmPointExtraConsumeRequest();
AlibabaAlscCrmPointExtraConsumeRequest.ExtraConsumePointOpenReq obj1 = new AlibabaAlscCrmPointExtraConsumeRequest.ExtraConsumePointOpenReq();
obj1.setBizChannel("CS");
obj1.setBrandId("32132");
obj1.setChangePoint(323L);
obj1.setCustomerId("7027365982937563912722");
obj1.setOperatorId("33322123");
obj1.setOutBizId("3231231312312");
obj1.setReason("积分补扣原因");
obj1.setRequestId("323412");
obj1.setShopId("3332312");
obj1.setOutShopId("435632");
obj1.setOutBrandId("33959");
req.setParamExtraConsumePointOpenReq(obj1);
AlibabaAlscCrmPointExtraConsumeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_point_extra_consume_response>
    <result>
        <biz_success>true</biz_success>
        <result>333213123</result>
        <result_code>200</result_code>
        <result_desc>成功</result_desc>
        <result_view>&quot;&quot;</result_view>
    </result>
</alibaba_alsc_crm_point_extra_consume_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

返回
顶部