Overview
TheBankTransferClient enables direct bank transfer cash-outs to any supported Colombian bank. Unlike PSE (which is a payment collection method), bank transfers allow you to send funds from a Kusama account to a traditional Colombian bank account.
Key features:
- Supports all major Colombian banks
- Direct transfers to savings or checking accounts
- Automatic execution with source account specification
bloque.swap.bankTransfer.
Constructor
TheBankTransferClient is automatically initialized as part of the SwapClient.
Methods
create()
Creates a bank transfer swap order to send funds from Kusama to a Colombian bank account.Parameters
Bank transfer order parameters
Returns
Example: Cash-out to Bancolombia
Example: Cash-out to Banco de Bogotá (checking account)
Example: Using destination amount instead
Supported Banks
The following Colombian banks are supported:| Bank Code | Bank Name |
|---|---|
bancolombia | Bancolombia |
banco_de_bogota | Banco de Bogotá |
banco_davivienda | Banco Davivienda |
banco_popular | Banco Popular |
banco_bbva_colombia | BBVA Colombia |
banco_av_villas | Banco AV Villas |
banco_de_occidente | Banco de Occidente |
banco_caja_social_bcsc | Banco Caja Social |
banco_agrario_de_colombia | Banco Agrario |
banco_gnb_sudameris | Banco GNB Sudameris |
banco_falabella | Banco Falabella |
banco_pichincha | Banco Pichincha |
banco_coomeva | Banco Coomeva |
banco_finandina_bic | Banco Finandina |
banco_santander_de_negocios_colombia | Santander Colombia |
banco_w | Banco W |
banco_btg_pactual_colombia | BTG Pactual |
banco_cooperativo_coopcentral | Coopcentral |
banco_itau | Banco Itaú |
banco_bancamia | Bancamía |
banco_serfinanza | Serfinanza |
banco_mundo_mujer | Banco Mundo Mujer |
banco_contactar | Banco Contactar |
banco_union | Banco Unión |
citibank_colombia | Citibank Colombia |
banco_jp_morgan_colombia | JP Morgan Colombia |
davibank | Davibank |
ban100 | BAN100 |
lulo_bank | Lulo Bank |
mibanco | Mibanco |
Fee Structure for Bank Transfers
Bank transfer fees typically include:- Exchange rate spread: The difference between market rate and offered rate
- Platform fee: Bloque’s service fee (percentage-based)
- Bank transfer fee: Fixed fee charged by the destination bank
Transfer Flow
- Find rates: Use
swap.findRates()withfromMediums: ['kusama']andtoMediums: [bankCode] - Create order: Call
bankTransfer.create()with bank account details and source account - Auto-execution: Funds are automatically debited from the source Kusama account
- Bank processing: Transfer is processed by the destination bank
- Completion: Funds arrive in the specified bank account
Webhook Notifications
Receive real-time updates on transfer status:- Order created
- Transfer initiated
- Transfer completed
- Transfer failed (with reason)
Error Handling
Related Types
CreateBankTransferOrderParams- Parameters for creating bank transfer ordersCreateBankTransferOrderResult- Result of creating bank transfer orderBankDepositInformation- Bank account detailsKusamaAccountArgs- Source account argumentsSupportedBank- Supported bank codesBankAccountType- Account type (savings/checking)IdentificationType- ID types (CC/CE/NIT/PP)SwapOrder- Swap order detailsExecutionResult- Auto-execution resultOrderType- Order type (src/dst)