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

alibaba.alsc.crm.recharge.undedut.update (储值消费退款(逆向))

新增储值消费退款接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_undedut_open_req UndedutOpenReq 可选 入参
  • └ brand_id
  • String
  • 可选
  • 21314
  • 品牌ID(不能和outbrandid同时为空)
  • └ card_id
  • String
  • 可选
  • 7645762354
  • 卡ID,礼品卡或会员卡Id
  • └ customer_id
  • String
  • 可选
  • 7684719875
  • 会员ID
  • └ new_outer_order_id
  • String
  • 必须
  • 76786347548
  • 外部反核销交易订单号(外部调用方保证在isv内部是唯一,可以是paymentItemId)
  • └ operator_id
  • String
  • 必须
  • 123456
  • 操作人ID
  • └ outer_order_id
  • String
  • 必须
  • 786173567164716564899176345461
  • 外部核销交易单号id(外部调用方保证在isv内部是唯一,可以是paymentItemId)
  • └ remark
  • String
  • 可选
  • 备注
  • 备注
  • └ request_id
  • String
  • 必须
  • 8763876428763452
  • 请求id,用来做幂等
  • └ shop_id
  • String
  • 可选
  • 73529374
  • 门店ID(不能和outshopid同时为空)
  • └ value
  • Number
  • 可选
  • 34213412
  • 当vlaue不传时,就是退整单金额
  • └ out_shop_id
  • String
  • 可选
  • 1231
  • 外部门店ID(不能和shopid同时为空)
  • └ out_brand_id
  • String
  • 可选
  • 3213
  • 外部品牌ID(不能和brandid同时为空)
  • └ biz_channel
  • String
  • 必须
  • CS
  • CS是辰森,KRY是客如云

响应参数

名称 类型 示例值 描述
result CommonResult null 接口结果
  • └ biz_success
  • Boolean
  • true
  • 成功状态
  • result
  • RechargeAccountFlowDetailOpenInfo
  • null
  • 业务参数
  • └ account_id
  • String
  • 767427347625
  • 储值账户id
  • affected_property_list
  • RechargeAccountPropertyOpenInfo []
  • null
  • 操作储值资产信息列表
  • └ type
  • String
  • REAL
  • 账户类型
  • └ value
  • Number
  • 300
  • 账户值
  • after_property_list
  • RechargeAccountPropertyOpenInfo []
  • null
  • 操作后储值资产信息列表
  • └ type
  • String
  • PRE
  • 账户类型
  • └ value
  • Number
  • 200
  • 账户值
  • before_property_list
  • RechargeAccountPropertyOpenInfo []
  • null
  • 操作前储值资产信息列表
  • └ type
  • String
  • TOTAL
  • 账户类型
  • └ value
  • Number
  • 200
  • 账户值
  • └ brand_id
  • String
  • 7632755
  • 品牌Id
  • └ current_value
  • Number
  • 2376
  • 交易后剩余总金额
  • ext_info
  • Extinfo
  • null
  • 扩展信息
  • └ empty
  • Boolean
  • null
  • null
  • └ flow_id
  • String
  • 278345762547
  • 储值账户流水id
  • └ flow_type
  • String
  • SMALL
  • 储值相关的交易类型
  • └ operator
  • String
  • 786238462
  • 操作人ID
  • └ operator_name
  • String
  • 小明
  • 操作人
  • └ order_src
  • Number
  • 2
  • 外部订单来源
  • └ order_time
  • Date
  • 2019-08-01 15:45:31
  • 交易时间
  • └ order_value
  • Number
  • 78
  • 交易总金额,增加为正数,减少为负数
  • └ outer_order_id
  • String
  • 785367452
  • 外部交易单号id
  • └ remark
  • String
  • 回家睡个觉
  • 理由
  • └ shop_id
  • String
  • 875376452
  • 交易门店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);
AlibabaAlscCrmRechargeUndedutUpdateRequest req = new AlibabaAlscCrmRechargeUndedutUpdateRequest();
AlibabaAlscCrmRechargeUndedutUpdateRequest.UndedutOpenReq obj1 = new AlibabaAlscCrmRechargeUndedutUpdateRequest.UndedutOpenReq();
obj1.setBrandId("21314");
obj1.setCardId("7645762354");
obj1.setCustomerId("7684719875");
obj1.setNewOuterOrderId("76786347548");
obj1.setOperatorId("123456");
obj1.setOuterOrderId("786173567164716564899176345461");
obj1.setRemark("备注");
obj1.setRequestId("8763876428763452");
obj1.setShopId("73529374");
obj1.setValue(34213412L);
obj1.setOutShopId("1231");
obj1.setOutBrandId("3213");
obj1.setBizChannel("CS");
req.setParamUndedutOpenReq(obj1);
AlibabaAlscCrmRechargeUndedutUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_crm_recharge_undedut_update_response>
    <result>
        <biz_success>true</biz_success>
        <result>
            <account_id>767427347625</account_id>
            <affected_property_list>
                <recharge_account_property_open_info>
                    <type>REAL</type>
                    <value>300</value>
                </recharge_account_property_open_info>
            </affected_property_list>
            <after_property_list>
                <recharge_account_property_open_info>
                    <type>PRE</type>
                    <value>200</value>
                </recharge_account_property_open_info>
            </after_property_list>
            <before_property_list>
                <recharge_account_property_open_info>
                    <type>TOTAL</type>
                    <value>200</value>
                </recharge_account_property_open_info>
            </before_property_list>
            <brand_id>7632755</brand_id>
            <current_value>2376</current_value>
            <ext_info>
                <empty>null</empty>
            </ext_info>
            <flow_id>278345762547</flow_id>
            <flow_type>SMALL</flow_type>
            <operator>786238462</operator>
            <operator_name>小明</operator_name>
            <order_src>2</order_src>
            <order_time>2019-08-01 15:45:31</order_time>
            <order_value>78</order_value>
            <outer_order_id>785367452</outer_order_id>
            <remark>回家睡个觉</remark>
            <shop_id>875376452</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_undedut_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

返回
顶部