Autional Autional
API Reference GitHub autional.com →

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

Execute the actual refund operation for an approved refund approval, calling wallet-service to complete the debit/refund transaction.

Billing Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Refund approval ID

Request Body

Schema: dto.ExecuteRefundRequest

FieldTypeRequiredExampleConstraintsDescription
user_id string Yes usr_abc123

Responses

StatusDescriptionSchema
200Refund executed successfullydto.ExecuteRefundDetailResponse
400Invalid request parametersdto.SimpleResponse
401Unauthorizeddto.SimpleResponse
403No permissiondto.SimpleResponse
409Status conflict (refund not approved or already executed)dto.SimpleResponse
500Internal server errordto.SimpleResponse

Referenced Schemas

dto.ExecuteRefundDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.ExecuteRefundResponse No
message string No
timestamp string No

dto.ExecuteRefundResponse

FieldTypeRequiredExampleConstraintsDescription
amount number No 99
refund_id string No ref_001
status string No completed
wallet_transaction_id string No txn_def456

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No