Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.usebila.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Save bank account and mobile money recipients for faster, recurring payouts.

Endpoints

EndpointMethodDescription
/bila/transfer-recipientsGETList all saved recipients
/bila/transfer-recipients/{id}GETGet a single recipient by ID
/bila/transfer-recipients/bank-accountPOSTCreate a bank account recipient
/bila/transfer-recipients/mobile-moneyPOSTCreate a mobile money recipient

Recipient Types

Bank Account Recipient

{
  "id": "rec-001",
  "type": "bank-account",
  "accountNumber": "1234567890",
  "accountName": "JOHN DOE",
  "bankId": "bank-001",
  "bankName": "Zambia National Commercial Bank",
  "country": "zm",
  "createdAt": "2024-01-15T10:30:00Z"
}

Mobile Money Recipient

{
  "id": "rec-002",
  "type": "mobile-money",
  "phone": "0977123456",
  "accountName": "JOHN DOE",
  "operator": "airtel",
  "country": "zm",
  "createdAt": "2024-01-15T10:30:00Z"
}

Create Bank Recipient

curl -X POST "https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account" \
  -H "x-api-key: sk_test_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "accountNumber": "1234567890",
    "bankId": "bank-001",
    "country": "zm"
  }'
The account name will be automatically resolved and saved with the recipient.

Create Mobile Money Recipient

curl -X POST "https://api.usebila.com/api/v1/bila/transfer-recipients/mobile-money" \
  -H "x-api-key: sk_test_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "0977123456",
    "operator": "airtel",
    "country": "zm"
  }'

Using Recipients in Transfers

When creating a transfer, you can use transferRecipientId instead of providing account details:
{
  "accountId": "your-wallet-id",
  "amount": 1000,
  "reference": "payout-123",
  "transferRecipientId": "rec-001",
  "narration": "Monthly payout"
}
API Reference
Explore the complete API reference