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/v4/paymentmethod/withdrawal
Headers
Content-Type
application/json
x-api-key
<x-api-key>
Body
username
string
The user's unique username. This should be dynamically generated or retrieved from your database.
firstName
string
The user's first name. If the user has a middle name, include it in the firstName field (e.g., Mehmet Ali).
lastName
string
The user's last name.
amount
decimal
The deposit amount in the smallest currency unit (e.g., cents, pence).
currency
string
The currency of the deposit amount (e.g., TRY, USD, EUR, GBP).
reference
string
A unique identifier for the transaction, typically a UUID or your unique transaction Id.
paymentMethod
integer
The identifier number for the selected payment method.
swiftCode
string
Required for paymentMethod values such as BankTransfer or CryptoCurrency. Represents the SWIFT code of the destination account (if applicable).
address
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.
If the selected
paymentMethodis BankTransfer, providing aswiftCodeis optional. The system can derive the relevant bank information directly from the provided IBAN.If the selected
paymentMethodis CryptoCurrency,swiftCodeis mandatory.For all other payment methods,
swiftCodeis not required.
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.
Retrieve the available swift codes.
The API key for authentication.
A JSON array of available swift codes.
API key is missing or invalid.
The specified swift code was not found.
Make a withdrawal request.
The API key for authentication.
Enum - PaymentMethod
Optional due to IBAN-based withdrawal
Withdrawal successful.
Bad request.
API key is missing or invalid.
Not Found.
Last updated