- Type-safe — Full TypeScript support with comprehensive request and response types
- Promise-based — Modern async/await API for clean, readable code
- Comprehensive — Covers Accounts, Transfers, Collections, Webhooks, and more
- Always up-to-date — Consistently structured and aligned with the latest API
Installation
Initialisation
Important: Never hardcode your API key. Always use environment variables or a secure secrets manager.
Accounts
Manage your Bila wallets and check balances. Types:BilaResponse · AccountRetrieveResponse · AccountListResponse · AccountGetBalanceResponse
Retrieve an account
List all accounts
Get account balance
Transfer recipients
Manage payout recipients for bank and mobile money transfers. Types:TransferRecipientRetrieveResponse · TransferRecipientListResponse · TransferRecipientCreateBankAccountResponse · TransferRecipientCreateMobileMoneyResponse
Retrieve a recipient
List all recipients
Create a bank account recipient
Create a mobile money recipient
Transfers (Payouts)
Send funds to bank accounts or mobile money wallets. Types:TransferRetrieveResponse · TransferListResponse · TransferGetStatusByReferenceResponse · TransferInitiateBankTransferResponse · TransferInitiateMobileMoneyTransferResponse
Retrieve a transfer
List all transfers
Get transfer status by reference
Initiate a bank transfer
Initiate a mobile money transfer
Collections
Accept mobile money payments from customers. Types:CollectionRetrieveResponse · CollectionListResponse · CollectionGetStatusByReferenceResponse · CollectionInitiateMobileMoneyCollectionResponse
Retrieve a collection
List all collections
Get collection status by reference
Initiate a mobile money collection
Transactions
View and manage transaction history. Types:TransactionRetrieveResponse · TransactionListResponse
Retrieve a transaction
List all transactions
Webhooks
Configure endpoints to receive real-time event notifications. Types:WebhookCreateResponse · WebhookUpdateResponse · WebhookListResponse · WebhookGetDeliveriesResponse · WebhookListEventsResponse · WebhookRotateSecretResponse
Register a webhook
Update a webhook
List all webhooks
Deactivate a webhook
Get webhook delivery history
List supported webhook events
Rotate webhook secret
Banks
List supported financial institutions. Types:BankListResponse
List banks by country
Resolve
Verify account details before initiating transfers. Types:ResolveBankAccountResponse · ResolveMobileMoneyResponse
Verify a bank account
Verify mobile money details
Type definitions
All request and response types are available via theBila namespace.
Error handling
All SDK methods return a promise. Usetry/catch to handle errors.
| Property | Description |
|---|---|
status | HTTP status code e.g. 400, 401, 422, 500 |
message | Human-readable error message |
type | The specific error type from the API |
