Accounts Overview
The Bloque SDK provides comprehensive functionality for managing various types of financial accounts.
Account Types
The SDK supports multiple account types, each designed for specific use cases:
Virtual Cards
Create instant virtual cards for online payments. Cards are:
- PCI-compliant: Secure storage and display of sensitive card data
- Instant: Cards are created immediately and ready to use
- Multiple: Users can have multiple cards for different purposes
Learn more about Virtual Cards
Bancolombia Accounts
Create payment accounts that integrate with Bancolombia's banking system:
- Reference codes: Unique codes for receiving payments
- Bank integration: Direct integration with Bancolombia
- Payment tracking: Full visibility into payment status
Learn more about Bancolombia Accounts
Common Operations
All account types support common operations:
Listing Accounts
List all accounts for a user with their current balances:
list-accounts.ts
Checking Balance
Get the current balance for any account:
check-balance.ts
Viewing Transactions
List transaction history with pagination:
types.ts
Transfers
Transfer funds between any accounts:
transfer.ts
Supported Assets
User Sessions
Important
Most account operations require connecting to a user session first:
types.ts
This ensures proper authentication and authorization for user-specific operations.
Best Practices
- Use User Sessions: Connect to user sessions for account operations
- Verify Users: Ensure users complete KYC before creating accounts
- Handle States: Check account status before operations
- Pagination: Use pagination for large transaction lists
- Error Handling: Always use try-catch blocks
- Test First: Test in sandbox mode before production
Next Steps
- Virtual Cards - Create and manage virtual cards
- Bancolombia - Bancolombia account integration
- Transfers - Transfer funds between accounts
- Compliance - KYC verification