How to initiate a withdrawal
Learn how to initiate a withdrawal of funds to your customer.
Last updated
Learn how to initiate a withdrawal of funds to your customer.
Last updated
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.
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.
POST
https://api.xgateway.tech/api/v1/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
recipient*
String
The recipient information
POST
https://api.xgateway.tech/api/v2/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
recipient*
String
The recipient information
POST
https://api.xgateway.tech/api/v1/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
cardHolderName
String
The name on the card to withdraw to
cardNumber*
String
The card number to withdraw to
POST
https://api.xgateway.tech/api/v2/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
cardHolderName
String
The name on the card to withdraw to
cardNumber*
String
The card number to withdraw to
POST
https://api.xgateway.tech/api/v1/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
phoneNumber*
String
The recipient phone number
bankName
String
The bank name, where there's an account with the provided phone number
POST
https://api.xgateway.tech/api/v2/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
phoneNumber*
String
The recipient phone number
bankName
String
The bank name, where there's an account with the provided phone number
POST
https://api.xgateway.tech/api/v1/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
bankName
String
The bank name
bankAccountName*
String
The bank account name
bankAccountNumber*
String
The bank account number
POST
https://api.xgateway.tech/api/v2/withdrawal
x-api-key*
String
Your API key
customerId*
String
The unique customer ID who initiated the withdrawal
amount*
String
The amount to withdraw
currency*
String
orderId
String
The unique order ID in your system
applicationId
String
The application ID if you have multiple
comment
String
The comment (max 255 symbols)
paymentSystem
String
The payment system to process withdrawal with
bankName
String
The bank name
bankAccountName*
String
The bank account name
bankAccountNumber*
String
The bank account number
If applicationId
and orderId
are passed when creating an invoice, the callback will contain them after the transaction is processed.
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.
The to withdraw in
The to withdraw in
The to withdraw in
The to withdraw in
The to withdraw in
The to withdraw in
The to withdraw in
The to withdraw in
Creates a withdrawal request to an external resource.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header
on requests.
Crypto:
Peer-to-peer:
Bank transfer:
Peer-to-peer2:
Crypto:
Peer-to-peer:
Bank transfer:
Peer-to-peer2:
Created
Creates a withdrawal request to an external resource.
Access to this endpoint requires a valid API key. The API key is sent in the x-api-key
header
on requests.
Crypto:
Peer-to-peer:
Bank transfer:
Peer-to-peer2:
Crypto:
Peer-to-peer:
Bank transfer:
Peer-to-peer2:
Created