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

alibaba.alsc.crm.recharge.uncharge.update (充值退款)

充值退款

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_uncharge_open_req UnchargeOpenReq 必须 入参
  • └ brand_id
  • String
  • 可选
  • 1234532
  • SaaS品牌ID(不能和outbrandid同时为空)
  • └ card_id
  • String
  • 可选
  • 213142351341234
  • 卡号
  • └ operator_id
  • String
  • 必须
  • 232353534
  • 操作人ID(SaaS Id)
  • └ outer_order_id
  • String
  • 必须
  • 43426234265234
  • 退储值订单Id,必填(kry是paymentItemId),外部保证唯一,作为退款幂等号
  • └ remark
  • String
  • 可选
  • 接口红腹锦鸡等
  • 备注
  • └ shop_id
  • String
  • 可选
  • 3432757445
  • SaaS门店ID(不能和outshopid同时为空)
  • └ src_outer_order_id
  • String
  • 必须
  • 786237558237459862
  • 原充值订单Id,必填(kry是srcPaymentItemId)
  • └ out_shop_id
  • String
  • 可选
  • 1231
  • 外部门店ID(不能和sopid同时为空)
  • └ out_brand_id
  • String
  • 可选
  • 3213
  • 外部品牌ID(不能和brandid同时为空)
  • └ request_id
  • String
  • 必须
  • hjj3b23b4b2b
  • 请求id,幂等
  • └ biz_channel
  • String
  • 必须
  • CS
  • CS是辰森,KRY是客如云
  • └ src_out_pay_id
  • String
  • 可选
  • 3223
  • 原支付单号

响应参数

名称 类型 示例值 描述
result CommonResult 接口结果
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • result
  • RechargeAccountFlowDetailOpenInfo
  • null
  • 返回结果
  • └ account_id
  • String
  • 782364726
  • 储值账户id
  • affected_property_list
  • RechargeAccountPropertyOpenInfo []
  • null
  • 操作储值资产信息列表
  • └ type
  • String
  • REAL
  • 账户类型
  • └ value
  • Number
  • 2000
  • 账户值
  • after_property_list
  • RechargeAccountPropertyOpenInfo []
  • null
  • 操作后储值资产信息列表
  • └ type
  • String
  • GIFT
  • 账户类型
  • └ value
  • Number
  • 100
  • 账户值
  • before_property_list
  • RechargeAccountPropertyOpenInfo []
  • null
  • 操作前储值资产信息列表
  • └ type
  • String
  • PRE
  • 账户类型
  • └ value
  • Number
  • 200
  • 账户值
  • └ brand_id
  • String
  • 452342344
  • 品牌Id
  • └ current_value
  • Number
  • 3000
  • 交易后剩余总金额
  • ext_info
  • Extinfo
  • null
  • 扩展信息
  • └ empty
  • Boolean
  • null
  • null
  • └ flow_id
  • String
  • 4634523433434
  • 储值账户流水id
  • └ flow_type
  • String
  • UNCHARGE
  • 储值相关的交易类型
  • └ operator
  • String
  • 12532424123
  • 操作人ID
  • └ operator_name
  • String
  • 小明
  • 操作人
  • └ order_src
  • Number
  • 1
  • 外部订单来源
  • └ order_time
  • Date
  • 2019-04-05 12:13:14
  • 交易时间
  • └ order_value
  • Number
  • -6372
  • 交易总金额,增加为正数,减少为负数
  • └ outer_order_id
  • String
  • 786238748723469826348
  • 外部交易单号id
  • └ remark
  • String
  • 哈就睡得好
  • 备注
  • └ shop_id
  • String
  • 8723876
  • 交易门店ID
  • └ shop_name
  • String
  • 花花小吃
  • 交易门店名称
  • └ 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);
AlibabaAlscCrmRechargeUnchargeUpdateRequest req = new AlibabaAlscCrmRechargeUnchargeUpdateRequest();
AlibabaAlscCrmRechargeUnchargeUpdateRequest.UnchargeOpenReq obj1 = new AlibabaAlscCrmRechargeUnchargeUpdateRequest.UnchargeOpenReq();
obj1.setBrandId("1234532");
obj1.setCardId("213142351341234");
obj1.setOperatorId("232353534");
obj1.setOuterOrderId("43426234265234");
obj1.setRemark("接口红腹锦鸡等");
obj1.setShopId("3432757445");
obj1.setSrcOuterOrderId("786237558237459862");
obj1.setOutShopId("1231");
obj1.setOutBrandId("3213");
obj1.setRequestId("hjj3b23b4b2b");
obj1.setBizChannel("CS");
obj1.setSrcOutPayId("3223");
req.setParamUnchargeOpenReq(obj1);
AlibabaAlscCrmRechargeUnchargeUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_recharge_uncharge_update_response>
    <result>
        <biz_success>true</biz_success>
        <result>
            <account_id>782364726</account_id>
            <affected_property_list>
                <recharge_account_property_open_info>
                    <type>REAL</type>
                    <value>2000</value>
                </recharge_account_property_open_info>
            </affected_property_list>
            <after_property_list>
                <recharge_account_property_open_info>
                    <type>GIFT</type>
                    <value>100</value>
                </recharge_account_property_open_info>
            </after_property_list>
            <before_property_list>
                <recharge_account_property_open_info>
                    <type>PRE</type>
                    <value>200</value>
                </recharge_account_property_open_info>
            </before_property_list>
            <brand_id>452342344</brand_id>
            <current_value>3000</current_value>
            <ext_info>
                <empty>null</empty>
            </ext_info>
            <flow_id>4634523433434</flow_id>
            <flow_type>UNCHARGE</flow_type>
            <operator>12532424123</operator>
            <operator_name>小明</operator_name>
            <order_src>1</order_src>
            <order_time>2019-04-05 12:13:14</order_time>
            <order_value>-6372</order_value>
            <outer_order_id>786238748723469826348</outer_order_id>
            <remark>哈就睡得好</remark>
            <shop_id>8723876</shop_id>
            <shop_name>花花小吃</shop_name>
        </result>
        <result_code>200</result_code>
        <result_desc>成功</result_desc>
        <result_view>&quot;&quot;</result_view>
    </result>
</alibaba_alsc_crm_recharge_uncharge_update_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

返回
顶部