POST /admin/billing/refund-approval/{approval_id}/execute

对已批准的退款审批执行实际退款操作,调用 wallet-service 完成扣款/退款交易

计费服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
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