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

alibaba.alsc.crm.point.reversepoint (积分消费回退)

积分消费回退

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_reverse_consume_point_open_req ReverseConsumePointOpenReq 可选 入参
  • └ biz_type
  • String
  • 必须
  • DEDUCT_FROM_CONSUME_REVERSE
  • 业务场景
  • └ brand_id
  • String
  • 可选
  • 12332
  • 品牌id
  • └ change_point
  • Number
  • 可选
  • 23
  • 变更积分数
  • └ customer_id
  • String
  • 可选
  • 7027365982937563912722
  • 顾客id
  • └ operator_id
  • String
  • 必须
  • 3484874839
  • 操作人id
  • └ operator_name
  • String
  • 必须
  • 小王
  • 操作人名
  • └ out_biz_id
  • String
  • 必须
  • 3231231312312
  • 关联交易号/订单号
  • └ reason
  • String
  • 可选
  • 积分回退
  • 变更理由
  • └ request_id
  • String
  • 必须
  • 4325
  • 请求幂等UUID
  • └ reverse_order_id
  • String
  • 必须
  • 34356785432
  • 反向操作的业务ID,如退单号
  • └ shop_id
  • String
  • 可选
  • 23453435
  • 门店id
  • └ out_shop_id
  • String
  • 可选
  • 87766897
  • 外部门店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
  • 3453234
  • 业务数据
  • └ 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);
AlibabaAlscCrmPointReversepointRequest req = new AlibabaAlscCrmPointReversepointRequest();
AlibabaAlscCrmPointReversepointRequest.ReverseConsumePointOpenReq obj1 = new AlibabaAlscCrmPointReversepointRequest.ReverseConsumePointOpenReq();
obj1.setBizType("DEDUCT_FROM_CONSUME_REVERSE");
obj1.setBrandId("12332");
obj1.setChangePoint(23L);
obj1.setCustomerId("7027365982937563912722");
obj1.setOperatorId("3484874839");
obj1.setOperatorName("小王");
obj1.setOutBizId("3231231312312");
obj1.setReason("积分回退");
obj1.setRequestId("4325");
obj1.setReverseOrderId("34356785432");
obj1.setShopId("23453435");
obj1.setOutShopId("87766897");
obj1.setOutBrandId("33959");
obj1.setBizChannel("CS/KRY");
req.setParamReverseConsumePointOpenReq(obj1);
AlibabaAlscCrmPointReversepointResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部