Skip to main content

Creating FIAT withdrawals

Withdrawal flow

You can withdraw your funds through personal area providing the merchant's account ID from bank or other wallets.

Creating withdrawal through personal area

  1. In the Payment Gateway section, click on New withdrawal
  2. In the new New withdrawal window, you must fill in the required fields:
  • amount of withdrawal
  • withdrawal currency
  • bank name
  • bank account
  • beneficiary first and last name
  • company name
  • phone

img

  1. XAMAX creates a withdrawal transaction and execute it

img

tip

XAMAX payment processing is instant. But the money will go to the bank account after the payment is processed by the bank, which takes T+3 days

  1. After creating a withdrawal, the transaction appears in the list of withdrawals in the Pending status. Merchant can track all created withdrawals and their status

img

  1. Merchant can view detailed information on each withdrawal

img

Creating withdrawal through API

Creating withdrawal

The merchant can create an withdrawal through a XAMAX API:

POST https://api.xamax.io/fiat/v1/withdrawal HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}
Content-Type: application/json

{
"amount": 700000,
"currency": "NGN",
"bank_account_number": "123445643232",
"bank_name": "Kapital",
"name": "John",
"surname": "Doe",
"organisation_name": "Google",
"phone": "+996123456789"
}
ParameterTypeDescriptionDefault valueExample
bank_account_number *stringBank account number (IBAN, BBAN)123456789
currency *stringCurrency code in ISO 4217 alfa-3 formatUSD
bank_name *stringBank nameCambridge bank
amount *stringAmount for transaction100.00
name *stringBeneficiary first nameJohn
surname *stringBeneficiary last nameDoe
organisation_name *stringCompany nameGoogle
phone *stringBeneficiary phone number+996123456789
* - Required parameter

Response example

{
"withdrawal_id": 1,
"amount": "70",
"currency": "NGN",
"bank_account_number": "123445643232",
"bank_name": "Kapital",
"name": "John",
"surname": "Doe",
"organisation_name": "Organization Name",
"phone": "+996123456789",
"status": "withdrawal_status_pending",
"date": "2023-08-14T12:41:51.733509Z"
}

List of withdrawals

GET https://api.xamax.io/fiat/v1/withdrawals HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}

Request contains query parameters

ParameterTypeDescriptionDefault valueExample
order_direction *stringDirection of sorting. Available values : asc, descascasc
orderstringOrder by fieldstatus
page *stringPage number1
per_page *stringNumber of transactions on one page2020
statusstringFilter by status. Available values : withdrawal_status_pending, withdrawal_status_complete, withdrawal_status_failed, withdrawal_status_waiting, withdrawal_status_canceledwithdrawal_status_canceled
payment_methodstringFilter by payment methods. Available values : bank_transfergo_pay_ewallet
sincestringFilter from creating transaction's date
tillstringFilter to creating transaction's date
* - Required parameter

Response example

{
"withdrawals": [
{
"withdrawal_id": 12,
"created_at": "2023-06-02T07:07:51.000000Z",
"status": "withdrawal_status_pending",
"amount": 700,
"currency": "NGN",
"payment_type": "bank_transfer"
}
]
}

Detailed information of withdrawal

GET https://api.xamax.io/fiat/v1/withdrawal?withdrawal_id={ID} HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}

Request contains query parameters

ParameterTypeDescriptionDefault valueExample
withdrawal_id *stringWithdrawal's Identifier100
* - Required parameter

Response example

{
"withdrawal_id": 1,
"created_at": "2023-05-30T14:23:55.000000Z",
"updated_at": "2023-05-30T14:23:55.000000Z",
"amount": 700,
"currency": "NGN",
"payment_type": "bank_transfer",
"status": "withdrawal_status_pending",
"bank_account_number": "12312354564646",
"bank_name": "Capital",
"name": "John",
"surname": "Doe",
"organisation_name": "Google"
}