C
C
Cashramp
Search
K
Comment on page

Withdraw To Bank

Convert your USD balance to local currency and withdraw to a bank account
Cashramp's API allows you to automatically convert your USD stablecoin balance to local currency and withdraw it to a bank account. At the moment, this feature is only available in Nigeria.

How to withdraw to a bank account

withdrawToBank.gql
mutation {
withdrawToBank(
bank: "VHlwZXM6OkJhbmstYmQ4MmRjNDQtYzA5Mi00YzcyLTkxMzAtYjUxODU4MTMyNmNm",
amountUsd: 200,
accountNumber: "2001934343"
) {
id
reference
}
}

Request

  • bank: The global ID of the bank you want to pay to. You can retrieve a list of banks within any supported country with the banks query.
  • amountUsd: The USD amount you want to be converted to local currency and paid into a bank account
  • accountNumber: The account number of the bank account you want the withdrawal to be paid into.
When the withdrawal has been successfully completed or failed, we'll send you a webhook update:
{
"event_type": "fiat_payout.updated",
"data": {
"id": "TWVyY2hhbnRQYXltZW50UmVxdWVzdC05ZmQ1Zjk5OS0zOTQzLTRkNTgtYjZmYy02ZmUzYmZkYTM3OGU=",
"reference": "test_ref_022",
"status": "completed",
"amountUsd": 200,
"amount", 150000
}
}