A AuthMS API Wiki API Reference iam.tianv.com →

POST /wallets/transactions/{id}/cancel

取消指定交易

钱包服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 交易ID

Request Body

Schema: dto.CancelTransactionRequest

FieldTypeRequiredExampleConstraintsDescription
reason string No 重复下单 原因

Responses

StatusDescriptionSchema
200OKdto.CancelTransactionDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证或令牌无效gitee_com_linmes_authms_base_dto.SimpleResponse
409余额不足gitee_com_linmes_authms_base_dto.SimpleResponse
422金额无效gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_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 是否取消成功
refund_amount string No 100.00 退款金额

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No