DOCS Live

PSPs and wallets

Showing your customers their bills

Register your customers as payers, subscribe them to their billers with consent, list their open bills and set up autopay.

Beyond selling on demand, you can show your customers the bills their billers send them: register each customer as a payer, subscribe them to a biller account with their consent (or accept a biller's enrolment offered to them), and list their open bills to pay in one tap. Autopay pays them automatically, with a notice before each debit.

Before you start

A PSP key with bills:read and bills:write, consent terms your customers accept, and a webhook endpoint for bill_invoice.*, bill_subscription.* and bill_autopay.*.

The flow at a glance

#WhoWhat happens
1Your systemRegisters the customer as a payer with your own ID.
2CustomerAdds a biller account (or accepts one a biller offers), accepting your terms.
3KulPayDelivers their invoices and reminds them before the due date.
4Your systemLists the open bills and pays them like any sale, or by autopay.

1. Register the payer

Your system.

POST /v1/payers · API reference

Under your own external_id. Phone, email, NUIT and KulPay @handle are matched to billers' enrolments, which subscribe the payer or offer them the account.

Request

{
  "external_id": "CLI-000482",
  "name": "Ana Macuácua",
  "phone": "+258841234567",
  "nuit": "123456789",
  "handle": "ana.macuacua"
}

2. Subscribe with consent

Your system, when the customer adds an account.

POST /v1/payers/{id}/subscriptions · API reference

consent is required: that they accepted, and the version of your terms. KulPay records it with the time and your channel.

Request

{
  "biller": "AGUAS",
  "account_reference": "CL-9",
  "alias": "Casa",
  "consent": {
    "accepted": true,
    "text_version": "2026-10"
  }
}

3. List the open bills

Your system.

GET /v1/payers/{id}/invoices · API reference

Presented invoices (pay with their invoice_id) and amounts due at lookup billers (pay with the lookup_id and product). New invoices also arrive as bill_invoice.delivered, and a reminder three days before they are due.

4. Set up autopay

Your system, with the customer's consent.

PUT /v1/payers/{id}/subscriptions/{sid}/autopay · API reference

From your balance or by collecting from the payer's wallet, up to max_amount per invoice, days_before_due days before the due date. You are told when each debit is scheduled: tell the customer before it happens.

Request

{
  "funding": "collect",
  "collect": {
    "method": "mpesa",
    "phone": "258841110000"
  },
  "max_amount": "2000.00",
  "days_before_due": 3,
  "consent": {
    "accepted": true,
    "text_version": "autopay-terms-v1"
  }
}

Events

EventWhat it tells you
bill_subscription.offered

A biller offered an account to your customer; ask them.

bill_invoice.delivered

A new invoice for a subscribed account.

bill_invoice.reminded

An invoice is due in three days.

bill_autopay.scheduled

A debit is scheduled; notify the customer.

bill_autopay.succeeded

An invoice was paid automatically.

bill_autopay.failed

Autopay gave up on an invoice.

Errors that matter here

Every error is application/problem+json with a stable code; branch on the code, not the message. The full list is in the error catalogue.

ErrorWhenWhat to do
422 consent_required

A subscription or autopay without the customer's consent.

Ask the customer to accept your terms.

422 reference_not_found

The biller does not know the account.

Ask the customer to check the reference.

Testing it

In test mode, subscribe a test payer to a test biller account and present an invoice for it from the biller side: it appears in the payer's bills.


All flows · API reference · Error catalogue