Withdraw Funds

POST /wallets/withdraw/

  • Use the POST /wallets/withdraw/ endpoint to initiate a withdrawal from the user's wallet.

Request Body

The request body contains the following fields:

Field

Type

Description

password

String

The user's password (min length: 1).

amount

Number

The amount to withdraw.

bank_id

Integer

The ID of the bank for the withdrawal.

Example Request Body

{
  "password": "userPassword123",
  "amount": 150.00,
  "bank_id": 1
}

Responses

The possible response from this endpoint is:

Code

Description

Example Value

201

Created

Model: Withdrawal

Example Response

{
  "password": "userPassword123",
  "amount": 150.00,
  "bank_id": 1
}

Last updated