Skip to main content

Creating Withdrawal

POST /api/v2/savings/withdrawal
{
  "source": {
    "savingsAccountId": "savings-id"
  },
  "destination": {
    "savingsAccountId": "savings-id",
    "externalAccountId": "bank-or-wallet-id"
  },
  "amount": 1000,
  "comment": "Withdrawal to bank"
}

Example

const withdraw = async (savingsAccountId, destinationAccountId, amount) => {
  const response = await fetch(
    'https://teste-94u93qnn.uc.gateway.dev/api/v2/savings/withdrawal',
    {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${token}`,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        source: {
          savingsAccountId: savingsAccountId
        },
        destination: {
          savingsAccountId: savingsAccountId,
          externalAccountId: destinationAccountId
        },
        amount: amount,
        comment: 'User withdrawal'
      })
    }
  );
  
  return await response.json();
};

Processing Times

  • To Bank (ACH): 1-3 business days
  • To Bank (Wire): Same day
  • To Crypto: 5-30 minutes

Next Steps

Transaction History

View savings API documentation