Skip to main content

Overview

The Bills Services provides a full suite of methods to manage bill payments: Included services:
  • Discovery: available billers and biller items
  • Payment: for airtime, mobile data, electricity, and cable TV
  • Validation: Validate customer bill details before payment
  • Records: Retrieve bill payment records and generate receipts
All services require a properly configured MoneiClient instance.
Note: All methods return response objects with attributes accessible via dot notation (e.g., response.status, response.data).

Bill Discovery

Get Biller Items

Retrieve available biller items based on bill category and biller name.

Get Electricity Billers

Retrieve a list of available electricity billers.

Bill Payments

Buy Airtime

Buy Mobile Data

Buy Electricity

Subscribe to Cable TV


Bill Validation

Validate customer bill information before making a payment.

Bill Records Service

Retrieve bill payment history and receipts.

Get All Bills

Retrieve a paginated list of bill payment records.

Get Bill by Reference

Retrieve a bill record using a unique reference.

Generate Receipt

Generate a receipt for a specific bill transaction.

Working with Response Objects

Since all methods return objects with attributes, here’s how to access the data:

Notes

  • All methods require a properly configured MoneiClient instance with authentication.
  • DTOs used by the SDK include:
    • BillerItemsResponseDto
    • ElectricityBillerResponseDto
    • PaginatedBillResponseDto
    • BillResponseDto
    • AirtimePurchaseDto
    • DataPurchaseDto
    • ElectricityPaymentDto
    • CableTvPaymentDto
    • BillPaymentResponseDto
    • ValidateBillDto
  • Validate bills before payment to avoid failed or incorrect transactions.
  • All responses are strongly typed objects with attribute access, and some may include nested objects depending on the biller.