# 售后单操作退款



**应用场景**

1.本接口支持对状态为"待商家退款"的售后单据执行退款操作

2.本接口只用于发起退款操作，微信支付平台的具体退款进度请关注[售后单退款成功事件](https://open.dustess.com/document-center?pId=28f0bf3b07230959480ead972e236f76&id=864f49577e48386438fb41f1bfefff5c)

```
POST https://qw-openapi-tx.dustess.com/order/open-api/v1/afterSaleRefund?accessToken=

Content-Type: application/json
```

**请求参数**

| 参数名      | 类型     | 说明                         | 是否必须 |
| ----------- | -------- | ---------------------------- | -------- |
| afterSaleId | `String` | 售后单id                     | true     |
| operatorId  | `String` | 执行退款操作的员工，指员工uid | true     |

**请求示例**
`json` - Request-Example:


```json
{
    "afterSaleId": "1831586439516330696",
    "operatorId": "6402"
}
```

**响应参数**

| 参数名   | 类型     | 说明             |
| -------- | -------- | ---------------- |
| success  | `Bool`   | 请求成功失败标识 |
| code     | `Int`    | 响应码           |
| msg      | `String` | 响应信息         |
| data     | `Object` | 数据信息         |
| trace_id | `String` | 上下文链路id     |

**成功响应示例**

`json` - Response-Example:

```json
{
    "code": 0,
    "data": {},
    "msg": "OK",
    "success": true,
    "traceId": "e5071190-999e-99b1-9da7-f4ae3331bbee"
}
```

**失败响应示例**

`json` - Response-Example:

```json
{
    "code": 50012075,
    "data": {},
    "msg": "售后订单状态不正确",
    "success": true,
    "traceId": "b7db8395-add5-9a5d-9cc9-7ed0e4e4feb0"
}
```

