文档
测试

退款Refund

POST
/card/refund

接口描述

应用场景 Application scenarios 根据用户手机号与卡号退款 Refund based on user's mobile phone number and card number

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
token
String
身份标识 Identification
必填
phone
String
号绑定的手机号,一致才要进行退款操作 Refund when the mobile phone number bound to the card number in consistent .
必填
cardNum
String
卡号 card number
必填
lessenMoney
Double
退款金额,小于等于用户余额,单位:元 Refund amount, ≤ Account Balance, unit: USD
必填
userId
Integer
用户Id,传入userId时则根据userId进行退款,phone与cardNum参数将不起作用 User ID. When userId is returned, the refund will be made according to userId, and the parameters phone and cardNum will not work.
必填

响应参数

参数名
类型
描述
必填
data
object
信息 data
必填
success
boolean
退款成功与否 Refund success of not
必填

说明 / 示例

返回示例 Return the example ``` { "data":"退款成功!(Refund Success)", "success":true } ``` 退款失败返回示例 Refund failure return example ``` { "data":"卡号与手机号不匹配!(The card number does not match the cell phone number.!)", "code":"-1", "success":false } ```