How to initiate a withdrawal
Learn how to initiate a withdrawal of funds to your customer.
Crypto
To withdraw crypto funds on behalf of a certain customer, you can make a POST request with the following data to one of the API endpoints.
If applicationId
and orderId
are passed when creating an invoice, the callback will contain them after the transaction is processed.
Fiat
To withdraw fiat funds on behalf of a certain customer, you can make a POST request with the following data to one of the API endpoints.
Contact our support team to confirm the available payment systems.
Using a free-form
Initiates withdrawal of fiat funds using a free-form (v1)
POST
https://api.xgateway.tech/api/v1/withdrawal
Headers
Request Body
Initiates withdrawal of fiat funds using a free-form (v2)
POST
https://api.xgateway.tech/api/v2/withdrawal
Headers
Request Body
Using a card
Initiates withdrawal of fiat funds using a card (v1)
POST
https://api.xgateway.tech/api/v1/withdrawal
Headers
Request Body
Initiates withdrawal of fiat funds using a card (v2)
POST
https://api.xgateway.tech/api/v2/withdrawal
Headers
Request Body
Using a phone number
Initiates withdrawal of fiat funds using a phone number (v1)
POST
https://api.xgateway.tech/api/v1/withdrawal
Headers
Request Body
Initiates withdrawal of fiat funds using a phone number (v2)
POST
https://api.xgateway.tech/api/v2/withdrawal
Headers
Request Body
Using a bank account
Initiates withdrawal of fiat funds using a bank account (v1)
POST
https://api.xgateway.tech/api/v1/withdrawal
Headers
Request Body
Initiates withdrawal of fiat funds using a bank account (v2)
POST
https://api.xgateway.tech/api/v2/withdrawal
Headers
Request Body
If applicationId
and orderId
are passed when creating an invoice, the callback will contain them after the transaction is processed.
Results
When the transactions have been initiated you'll receive the response.
Keep in mind that the transaction is initially pending. You will receive a callback once it has been confirmed.
We assume that the customer has already been authorized on your side to withdraw the given amount of funds. The funds are withdrawn from your main wallet. This means that the customer can withdraw more than they have deposited.
You can always top up your main wallet to ensure it holds enough funds for customer withdrawals.
Last updated