# 退款

#### 请求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 信息

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.mbd.pub/api/tui-kuan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
