Pay Bill
monei_pay_billPay utility bills, buy airtime, data bundles, or cable TV subscriptions. Routes each payment to the correct provider based on the category, with optional scheduling and beneficiary saving.
Instructions
Pays a utility bill, buys airtime, purchases a data bundle, or subscribes to cable TV.
Routes to the correct payment method based on the 'category' field:
AIRTIME → airtime top-up for a phone number
MOBILEDATA → data bundle purchase for a phone number
UTILITYBILLS → electricity payment by meter number
CABLEBILLS → cable TV subscription by smartcard number
Before calling:
Call monei_get_bill_providers to get valid biller codes and item codes
Confirm the user has sufficient NGN balance using monei_get_wallet
For data and cable, call monei_validate_bill first to confirm the customer details
Args depend on category:
AIRTIME:
phoneNumber (string): Phone to top up
biller (string): Biller code from monei_get_bill_providers
amount (number): Amount in NGN
MOBILEDATA:
phoneNumber (string): Phone to buy data for
biller (string): Biller code from monei_get_bill_providers
itemCode (string): Data bundle code from monei_get_bill_providers
UTILITYBILLS:
meterNumber (string): Electricity meter number
disco (string): Provider code from monei_get_bill_providers
amount (number): Amount to pay in NGN
CABLEBILLS:
smartcardNumber (string): Decoder smartcard/IUC number
biller (string): Provider code from monei_get_bill_providers
itemCode (string): Package code from monei_get_bill_providers
All categories also accept optional:
isSchedule (boolean): Set true to schedule for a later date
scheduleData: { executionDate, isRecurring?, recurrencePattern? }
saveBeneficiary (boolean): Save recipient for future use
beneficiaryName (string): Label for the saved beneficiary
Returns: { "id": string, "reference": string, "billerName": string, "customer": string, "amount": number, "status": string, // "PENDING" | "SUCCESS" | "FAILED" "token": string | null, // Electricity token (for prepaid meters) "units": string | null // Electricity units (for prepaid meters) }
Examples:
"Buy ₦1,000 MTN airtime for 08012345678" -> category: "AIRTIME"
"Get me 1GB MTN data for 08012345678" -> category: "MOBILEDATA"
"Pay ₦5,000 to my IKEDC meter 12345678901" -> category: "UTILITYBILLS"
"Subscribe DSTV Compact for smartcard 1234567890" -> category: "CABLEBILLS"
"Pay my DSTV every month on the 1st" -> include isSchedule: true, scheduleData with recurrence
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||