Withdrawal
Initiating a Withdrawal via Payment Method API
To initiate a withdrawal for a user, a POST request must be sent to the following endpoint. The request body should be JSON formatted with the following parameters:
Create Withdrawal
POST
/api/v3/paymentmethod/withdrawal
Headers
Name | Value |
---|---|
Content-Type |
|
x-api-key |
|
Body
Name | Type | Description |
---|---|---|
| string | The user's unique username. This should be dynamically generated or retrieved from your database. |
| string | The user's given first name. |
| string | The user's last name. |
| decimal | The deposit amount in the smallest currency unit (e.g., cents, pence). |
| string | The currency of the deposit amount (e.g., TRY, USD, EUR, GBP). |
| string | A unique identifier for the transaction, typically a UUID or your unique transaction Id. |
| integer | The identifier number for the selected payment method. |
| string | Code for the payment method. For banks, use the SWIFT code; for cryptocurrency, use the currency symbol or identifier. |
| string | Account number, IBAN, or wallet address. |
Response
Instructions
Gather the necessary user details and the desired withdrawal amount.
Get the relevant swift code from swift code list.
Create the JSON payload with the correct user and transaction details.
Make the POST request to the designated endpoint with the JSON body.
Upon receiving the response, direct the user to the paymentPageUrl to carry out the withdrawal operation.
Last updated