文档
测试

2.查询组合退款金额【作废】

POST
getRefundAmount

接口描述

退卡退款时,取得各支付方式可退的金额,即现金退多少,手机支付退多少

请求参数

参数名
类型
描述
必填
token
String
登录TOKEN
必填
appid
String
商户appid
必填
card_no
String
会员卡序列号或动态会员码
必填
action_type
int
结算类型:0为退款不退卡,1为退款并退卡
必填

响应参数

参数名
类型
描述
必填
code
int
错误码,成功返回 200,失败返回其它
必填
message
String
错误描述
必填
data
Object
对象,业务数据
必填
cash
Double
现金退款金额
必填
webpay
Double
手机支付退款金额,最大不能超过此金额
必填
refund_amount
Double
总退款金额,等于现金退款+手机支付退款
必填

说明 / 示例

### 请求示例 ``` https://api2.XXX.cn/cm/getRefundAmount?token=TOKEN&appid=jb25112e65f20e7dfe&card_no=000343433 ``` ### 返回示例 #### 成功返回 JSON ``` { "code": 200, "message": "success", "data": { "result_msg": "ok", "result_code": "success", "cash": 10, "webpay": 50, "refund_amount": 60 } } ``` #### 失败返回 ``` "code": 1502, "message": "business.error.netShopId.isnotExist", "data": "" } ``` ==business.error.netShopId.isnotExist== 商户appid不存在 ``` "code": 4005, "message": "business.error.customer.notFound", "data": "" } ``` ==business.error.customer.notFound== 会员不存在或已注销,一般是会员卡号错误