DOCS Live

Billers

Presenting invoices

Send your invoices by API or file; each gets an RF reference, a payment link and a QR, and is payable on every KulPay channel.

A biller presents its invoices to KulPay and they become payable everywhere at once: in the KulPay app, in partner banks' and wallets' apps, at bank counters and agents (by the RF reference), and on a payment link or QR anyone can open.

Each invoice gets an RF reference (ISO 11649, for counters and bank apps), a payment link and a QR that opens it. When you collect on behalf of someone else, name them in on_behalf_of: they are shown with you wherever the invoice appears.

Before you start

Your biller account active at KulPay, a product that takes presented invoices, and a key with invoices:write and invoices:read.

The flow at a glance

#WhoWhat happens
1Your systemPresents invoices, one by one or in batches of up to 1,000 (or as a CSV file).
2KulPayAnswers per invoice, gives each its RF reference, link and QR, and delivers it to subscribed payers.
3PayersPay on any channel, in full or in part when you allow it.
4KulPayTells you of each payment, and remits the money to you.

1. Present invoices

Your system.

POST /v1/biller/invoices · API reference

One invoice, or {"invoices": [...]} up to 1,000. The number is yours and unique: presenting it again updates an unpaid invoice. lines, when given, must add up to the amount. Each invoice is answered created, updated or rejected with the reason.

on_behalf_of names the owner you bill for (legal name, trade name and the logo itself, base64 PNG, JPEG or WebP up to 1 MB). KulPay keeps the logo and shows the owner with you on every channel.

Request

{
  "invoices": [
    {
      "number": "FT2026/10/0042",
      "account_reference": "ALU-2031",
      "amount": "2500.00",
      "currency": "MZN",
      "issue_date": "2026-10-01",
      "due_date": "2026-11-05",
      "description": "Propinas de novembro",
      "lines": [
        {
          "description": "Propina",
          "amount": "2200.00"
        },
        {
          "description": "Transporte",
          "amount": "300.00"
        }
      ],
      "on_behalf_of": {
        "legal_name": "Escola Primária Josina Machel",
        "trade_name": "Escola Josina Machel",
        "logo": "iVBORw0KGgo…"
      }
    }
  ]
}

Response

{
  "created": 1,
  "updated": 0,
  "rejected": 0,
  "results": [
    {
      "number": "FT2026/10/0042",
      "result": "created",
      "invoice_id": "3KWPlCZORCtehfKOAIkXyowwAqr"
    }
  ]
}

2. Or load a file

Your system, for billers that bill in batches.

POST /v1/biller/invoice-files · API reference

A CSV with the header invoice_number,account_reference,amount,currency,issue_date,due_date,description (the last two optional), up to 10,000 rows and 5 MB. Loading it again updates the unpaid invoices instead of duplicating them. Add ?format=csv to get the result file back.

3. Read an invoice, its reference and link

Your system.

GET /v1/biller/invoices/{number} · API reference

The invoice with what was paid and what is open, its payment_reference (RF…) to print, its pay_url and QR. GET /v1/biller/invoices/{number}/qr.png and qr.svg give the QR for your printed invoice.

Response

{
  "id": "3KWPlCZORCtehfKOAIkXyowwAqr",
  "biller": "ESCOLA",
  "biller_name": "KulPay Faturação",
  "number": "FT2026/10/0042",
  "account_reference": "ALU-2031",
  "amount": "2500.00",
  "paid": "0.00",
  "open": "2500.00",
  "currency": "MZN",
  "issue_date": "2026-10-01",
  "due_date": "2026-11-05",
  "status": "open",
  "payment_reference": "RF49 9499 0578 6486",
  "pay_url": "https://gateway.kulpay.pavulla.com/pay/invoice/…",
  "on_behalf_of": {
    "legal_name": "Escola Primária Josina Machel",
    "trade_name": "Escola Josina Machel",
    "logo_url": "https://gateway.kulpay.pavulla.com/owner-logos/9f2c…"
  }
}

4. Change or cancel an unpaid invoice

Your system.

PATCH /v1/biller/invoices/{number} · API reference

Change the amount or the due date, or cancel it with {"status": "cancelled"}. An invoice already paid, even in part, cannot be changed.

Request

{
  "status": "cancelled"
}

States

StateWhat it means
open

Payable, nothing paid.

partially_paid

Part paid (when you accept partial payments).

paid

Paid in full.

cancelled

Cancelled by you.

expired

Past its due date plus your expiry period; no longer payable.

When the money moves

Each payment is credited to the invoice the moment it succeeds, on whatever channel. KulPay remits the money to you per your agreement: see Getting paid as a biller.

Events

EventWhat it tells you
bill_invoice.presented

An invoice was created, with its RF reference and QR link.

bill_invoice.payment_received

A payment was received, with its amount, fee, net and channel.

bill_invoice.partially_paid

Part of it is paid.

bill_invoice.paid

Paid in full.

bill_invoice.overdue

Unpaid after its due date.

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
403 not_a_biller

The key's organisation is not a biller.

Use your biller key.

409 invoice_locked

A change to an invoice already paid or partly paid.

Present a new invoice for any difference.

400 invalid_request

The batch is empty or over 1,000, or a file is malformed.

Fix and send again; per-invoice problems come back as rejected with the reason.

Testing it

Present test invoices with a test key and pay them from the test channels. Look the RF reference up as a bank would (Paying an invoice at the counter).


All flows · API reference · Error catalogue