Autional Autional
API Reference GitHub autional.com →

POST /wallets/transactions/{wallet_id}/cancel

Cancel a specified transaction

Wallet Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Transaction ID

Request Body

Schema: dto.CancelTransactionRequest

FieldTypeRequiredExampleConstraintsDescription
reason string No Duplicate order Reason

Responses

StatusDescriptionSchema
200OKdto.CancelTransactionDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated or invalid tokengitee_com_linmes_authms_base_dto.SimpleResponse
409Insufficient balancegitee_com_linmes_authms_base_dto.SimpleResponse
422Invalid amountgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CancelTransactionDetailResponse

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

dto.CancelTransactionResult

FieldTypeRequiredExampleConstraintsDescription
cancelled boolean No Whether cancellation succeeded
refund_amount string No 100.00 Refund amount

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No