Autional Autional
API Reference GitHub autional.com →

POST /wallets/{user_id}/withdraw/request

Submit a withdrawal request.

Wallet Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID

Request Body

Schema: dto.WithdrawalRequest

FieldTypeRequiredExampleConstraintsDescription
amount string Yes
remark string No

Responses

StatusDescriptionSchema
201Createddto.WithdrawalRequestResponse
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.WithdrawalRequestResponse

FieldTypeRequiredExampleConstraintsDescription
amount string No 100.50
id string No wdr_01ARZ3NDEKTSV4RRFFQ69G5FAV
status string No pending
user_id string No usr_example_001

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No