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

alibaba.alsc.crm.point.consumepoint (积分抵现)

积分抵现

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_consume_point_open_req ConsumePointOpenReq 可选 入参
  • └ brand_id
  • String
  • 可选
  • 32213
  • 品牌id
  • └ change_point
  • Number
  • 必须
  • 2333
  • 变更积分数
  • └ customer_id
  • String
  • 必须
  • 7027365982937563912722
  • 顾客id
  • └ operator_id
  • String
  • 必须
  • 84646738392
  • 操作人id
  • └ operator_name
  • String
  • 必须
  • 小狗
  • 操作人名
  • └ out_biz_id
  • String
  • 必须
  • 32323234344356
  • 关联交易号/订单号
  • └ reason
  • String
  • 可选
  • 积分抵现
  • 变更原因
  • └ request_id
  • String
  • 必须
  • 354346532
  • 请求id,用来做幂等
  • └ shop_id
  • String
  • 可选
  • 45346543
  • 门店id
  • └ out_shop_id
  • String
  • 可选
  • 32423234
  • 外部门店ID,shop_id和out_shop_id不可同时为空
  • └ out_brand_id
  • String
  • 可选
  • 33959
  • 外部品牌id,brandId与out_brand_id不可同时为空
  • └ biz_channel
  • String
  • 必须
  • CS/KRY
  • 辰森是CS,客如云是KRY

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • └ result
  • String
  • 45632456
  • 业务数据
  • └ 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);
AlibabaAlscCrmPointConsumepointRequest req = new AlibabaAlscCrmPointConsumepointRequest();
AlibabaAlscCrmPointConsumepointRequest.ConsumePointOpenReq obj1 = new AlibabaAlscCrmPointConsumepointRequest.ConsumePointOpenReq();
obj1.setBrandId("32213");
obj1.setChangePoint(2333L);
obj1.setCustomerId("7027365982937563912722");
obj1.setOperatorId("84646738392");
obj1.setOperatorName("小狗");
obj1.setOutBizId("32323234344356");
obj1.setReason("积分抵现");
obj1.setRequestId("354346532");
obj1.setShopId("45346543");
obj1.setOutShopId("32423234");
obj1.setOutBrandId("33959");
obj1.setBizChannel("CS/KRY");
req.setParamConsumePointOpenReq(obj1);
AlibabaAlscCrmPointConsumepointResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部