/admin/billing/refund-approval/{approval_id}/execute
对已批准的退款审批执行实际退款操作,调用 wallet-service 完成扣款/退款交易
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|---|---|
approval_id |
path |
string |
是 | 退款审批ID |
请求体
Schema: service-billing/internal/handler/dto.ExecuteRefundRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
user_id |
string |
是 | usr_abc123 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 退款执行成功 | service-billing/internal/handler/dto.ExecuteRefundDetailResponse |
| 400 | 请求参数错误 | dto.SimpleResponse |
| 401 | 未授权 | dto.SimpleResponse |
| 403 | 无权限 | dto.SimpleResponse |
| 409 | 状态冲突(退款未审批或已执行) | dto.SimpleResponse |
| 500 | 服务器内部错误 | dto.SimpleResponse |
引用的 Schema
dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-billing/internal/handler/dto.ExecuteRefundDetailResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-billing/internal/handler/dto.ExecuteRefundResponse |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |
service-billing/internal/handler/dto.ExecuteRefundResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
amount |
number |
否 | 99 |
||
refund_id |
string |
否 | ref_001 |
||
status |
string |
否 | completed |
||
wallet_transaction_id |
string |
否 | txn_def456 |