> For the complete documentation index, see [llms.txt](https://doc.mbd.pub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.mbd.pub/api/tui-kuan.md).

# 退款

#### 请求URL

* `https://api.niucodata.com/release/main/refund`

#### 请求方式

* POST
* Json

#### 请求参数

| **参数名**   | **必选** | **类型** | **说明**                                   |
| --------- | ------ | ------ | ---------------------------------------- |
| order\_id | 是      | string | 订单号                                      |
| app\_id   | 是      | string | 你的 app\_id，可在控制台查看                       |
| sign      | 是      | string | 请求签名，参照[签名算法](/api/qian-ming-suan-fa.md) |

#### 返回示例

```
//成功
{
    "code": 200,
    "info": "refund success"
}

//失败
{
    "error": "该订单已退款"
}
```

#### 返回参数说明

| **参数名** | **类型** | **说明**    |
| ------- | ------ | --------- |
| code    | int    | 200 为退款成功 |
| info    | string | -         |

#### 备注

* 如果返回结果不包含 error，则退款成功，否则见 error 信息

> 提示：确保账户余额大于退款金额，才可以退款成功
