接口编号:5010
接口说明:
储值礼品卡批量退款(余额反充值)接口
根据运营后台配置参数,wxcardcode支持卡号或动态码均可校验,仅动态码可校验通过两种
请求说明:
HTTP请求方式:POST
返回数据格式:JSON
请求路径:api/wxgiftcard/BatchRechargeWxGiftCard
请求参数:
字段 | 类型 | 可否为空 | 长度 | 描述 |
WxGiftCards | 结构 | 否 | ||
WxCardCode | string | 否 | 20 | 储值卡号或动态码 |
Balance | decimal | 否 | 12,2 | 储值礼品卡退款的金额 |
TransId | string | 否 | 20 | 操作流水号 |
RecordBalance | string | 是 | 14 | 商家自定义金额消耗记录,不超过14个汉字 |
TotalBalance | decimal | 是 | 12,2 | 订单退款总金额(传该参数时不能传WxGiftCards) |
TransId | string | 是 | 19 | 操作流水号(传该参数时不能传WxGiftCards) |
ShopCode | string | 否 | 20 | 储值礼品卡退款的门店编码(EZR门店) |
RechargeType | string | 否 | 2 | 储值礼品卡充值类型(退款反充值:RF) |
ExternalOrderId | string | 否 | 20 | 外部订单号 |
OriginalOrderId | string | 否 | 20 | 原始订单号 |
请求参数示例代码(json对象):
示例一 { "ExternalOrderId":"R2018070314324624579", "OriginalOrderId":"E2018070311244812085", "ShopCode":1203, "RechargeType":"RF", "WxGiftCards":[ {"WxCardCode":"163635893048607606","Balance":0.01,"TransId":"T2018070311282635043","RecordBalance":"商品xxx退款金额0.01元"}, {"WxCardCode":"163622182145372190","Balance":0.01,"TransId":"T2018070311283024796","RecordBalance":"商品xxx退款金额0.01元"}, {"WxCardCode":"163643896599388740","Balance":0.01,"TransId":"T2018070311283218628","RecordBalance":"商品xxx退款金额0.01元"}] } 示例二 { "ExternalOrderId":"R2018070314324624579", "OriginalOrderId":"E2018070311244812085", "ShopCode":1203, "RechargeType":"RF", "TotalBalance":0.03, "TransId":"T201807031128321862" }
系统级返回结果示例(json对象):
{ "Status": true, "StatusCode": 200, "Msg": "成功", "Timestamp": "20150622093101", "Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E", "Result": 见业务返回结果示例, }