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

alibaba.alsc.crm.open.recharge.operate (储值操作接口)

储值操作接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_recharge_operate_open_req RechargeOperateOpenReq 可选 储值操作参数
  • └ brand_id
  • String
  • 必须
  • 1332
  • saas品牌id
  • └ change_value
  • Number
  • 可选
  • 1000
  • 操作储值
  • └ customer_id
  • String
  • 可选
  • 34243334
  • 顾客id
  • └ mobile
  • String
  • 可选
  • 18651822226
  • 手机号
  • └ operate_type
  • Number
  • 可选
  • 1
  • 1-充值(charge) 2-冻结(freeze) 3-核销(verify) 4-充值回退(refund)
  • └ operator_id
  • String
  • 必须
  • 322343434
  • 操作人id
  • └ outer_id
  • String
  • 可选
  • 435532
  • 外部id
  • └ outer_order_id
  • String
  • 必须
  • 2424535354
  • 外部订单号
  • └ outer_type
  • String
  • 可选
  • wechat
  • 外部id类型,wechat:微信openId ;alipay:支付宝
  • └ reason
  • String
  • 可选
  • 测试
  • 操作备注
  • └ request_id
  • String
  • 必须
  • 249fdj242242xd
  • 请求幂等id
  • └ shop_id
  • String
  • 必须
  • 243545
  • saas门店id
  • └ new_outer_order_id
  • String
  • 可选
  • 23829392
  • 回退单号,operate_type为4退款时必填

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 是否成功
  • └ result
  • Boolean
  • true
  • 操作是否成功
  • └ result_code
  • String
  • 0
  • 结果码
  • └ result_desc
  • String
  • 成功
  • 结果详情
  • └ result_view
  • String
  • 成功
  • 结果显示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmOpenRechargeOperateRequest req = new AlibabaAlscCrmOpenRechargeOperateRequest();
AlibabaAlscCrmOpenRechargeOperateRequest.RechargeOperateOpenReq obj1 = new AlibabaAlscCrmOpenRechargeOperateRequest.RechargeOperateOpenReq();
obj1.setBrandId("1332");
obj1.setChangeValue(1000L);
obj1.setCustomerId("34243334");
obj1.setMobile("18651822226");
obj1.setOperateType(1L);
obj1.setOperatorId("322343434");
obj1.setOuterId("435532");
obj1.setOuterOrderId("2424535354");
obj1.setOuterType("wechat");
obj1.setReason("测试");
obj1.setRequestId("249fdj242242xd");
obj1.setShopId("243545");
obj1.setNewOuterOrderId("23829392");
req.setParamRechargeOperateOpenReq(obj1);
AlibabaAlscCrmOpenRechargeOperateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_open_recharge_operate_response>
    <result>
        <biz_success>true</biz_success>
        <result>true</result>
        <result_code>0</result_code>
        <result_desc>成功</result_desc>
        <result_view>成功</result_view>
    </result>
</alibaba_alsc_crm_open_recharge_operate_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

返回
顶部