• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
ClickPesa

ClickPesa

Financial Solutions

  • Home
  • Microfinances
    • Borrowing
    • Compliance-as-a-Service (CaaS)
    • Payments and Data Automation
  • Payment Gateway
    • Collection
    • Disbursement
    • Pricing
  • Developers
  • Customer Support
  • Login
  • Register

Introducing BillPay APIs for Invoices and Customers

Home » Insights » Introducing BillPay APIs for Invoices and Customers
August 21, 2025
billpay apis

Until now, assigning a BillPay Control Number for specific orders or customers was something organizations did in the ClickPesa Merchant Dashboard, this is great for manual workflows and quick starts. We are now releasing our BillPay APIs, which allows you to create and manage both Customer and Order Control Numbers directly from your own systems via API integration. Generate numbers on demand inside your billing, ERP, or checkout; attach your own references and amounts; choose payment behavior (full, partial, or overpayment accepted); and receive real-time confirmations that keep balances, ledgers, and reports in sync.

Recap: What is a BillPay Control Number?

A BillPay Control Number (BillPay-Namba) is a static, unique number linked to a specific customer or bill. It acts like a payment rail that you can reuse for multiple transactions if you allow partial or recurring payments. Because each payment against the number triggers a webhook, your system can update balances, post entries, and reconcile automatically.

The APIs let you programmatically generate and manage control numbers, removing manual setup and reducing operational overhead. You can:

  • Generate Customer or Order Control Numbers on demand
  • Set amounts, descriptions, and custom references
  • Automate tracking with real-time webhooks or the Payment Query API
  • Operate across all Tanzanian mobile money and CRDB banking channels

Read more: https://docs.clickpesa.com/bill-pay/bill-pay-overview

Types of BillPay Control Numbers

Customer BillPay Control Numbers
A single, permanent number linked to a customer, contract, or cost center that accepts multiple payments against the same reference. Ideal for ongoing relationships, installments, subscriptions/retainers, maintenance, repeat donations, because the number never changes, reducing payer confusion and making reconciliation predictable.

Read more: https://docs.clickpesa.com/bill-pay/customer-billpay-namba

Order BillPay Control Numbers
A one-time number tied to a specific bill (invoice, order, POS/restaurant tab) so the payer completes that transaction in a single flow. You control its behavior and lifespan (amount rules, partial/overpayment settings, expiry/closure) and can add a description and custom reference.

Read more: https://docs.clickpesa.com/bill-pay/order-billpay-namba

How BillPay APIs works, end to end

  1. Generate
    Create a control number for a customer, bill, or order using the Merchant Dashboard or the API. Set behavior to full amount only, allow partial payments, or accept overpayments.
  2. Share
    Present the number in your customer portal, send it by SMS or email, or print it on a slip. The same number works across supported channels.
  3. Pay
    Customers pay via Tanzanian mobile money and CRDB channels. No new apps or unfamiliar steps for the payer.
  4. Confirm
    Every successful payment triggers a real-time webhook. Your system can apply the payment immediately, update balances, and record clean accounting entries.
  5. Verify and Reconcile
    Use webhook events or the Payment Query API to verify totals, match payments to invoices or customers, and close the loop in finance.

Read more: https://docs.clickpesa.com/bill-pay/billpay-api-overview

Setup and Implementation BillPay APIs

We here explain how to integrate the BillPay APIs with your system and keeps data consistent from collection through accounting.

  1. Integrate the Create BillPay Control Numbers via the API
    • API Docs for Customer BillPay Control Numbers: https://docs.clickpesa.com/api-reference/collection/billpay/create-customer-control-number
    • API Docs for Order BillPay Control Numbers: https://docs.clickpesa.com/api-reference/collection/billpay/create-order-control-number
  2. Receive Webhooks
    • Implement a secure webhook endpoint and verify payloads using the checksum.
    • Docs: https://docs.clickpesa.com/home/webhooks#setting-up-webhooks
  3. Add webhook response in your database
    This is not an API and has to happen on your side.
    • Log each payment event in your database
    • Apply to the outstanding customer, order, invoice.
    • (Optional) Create accounting journals automatically.
  4. Issue Receipts from your app (optional)
    This is not an API and has to happen on your side.
    • Generate a receipt per payment and provide that to your customer
  5. Reconcile (optional but recommended)
    • Run a daily reconciliation against the Payments Query API and settlement files.

Docs: https://docs.clickpesa.com/api-reference/collection/querying-for-payments/querying-for-payments

How do we charge

The BillPay API (for creating and managing Customer and Order Control Numbers) is a secure, maintained service that we operate end-to-end, cloud infrastructure, uptime monitoring, webhook delivery, fraud/abuse safeguards, and ongoing product support. That work carries real operating costs, so we charge a 1% per successful transaction. In return, businesses typically cut manual administration and reconciliation dramatically (companies report up to 85% less admin), turning BillPay into a net cost saver.

Why teams choose BillPay APIs

  • Flexibility: Structure bills the way your business operates
  • Cost Saving: Automate, reduce manual effort and remove errors
  • Instant confirmation: See payments as they clear, in real time
  • Market reach: Accept payments across Tanzanian mobile money and CRDB channels

FAQ

Can one customer have multiple control numbers?
Yes. Use separate numbers for different services, projects, or income centers.

Do you support partial payments and overpayments?
Yes, this can be done through Customer BillPay Control Numbers. You choose the behavior per control number.

How are confirmations delivered?
Each successful payment triggers a webhook so your system can update balances immediately.

What is my customers do not want to pay with a reference, can I still track payments coming from them?
Yes, we also provide USSD Push Payments. It triggers a USSD prompt from your app to ask the customer to pay, no reference entry required. The payment is automatically matched to the correct reference.

Which channels are supported?
All major Tanzanian mobile money networks and CRDB banking channels.

Why does it cost my business 1% per transaction?
The fee covers the secure operation and continuous improvement of the BillPay API, hosting, monitoring, webhook reliability, integrations and support. It is designed to reduce manual work and errors; many customers see up to 85% less admin effort.

What’s included in the fee?
API access, real-time webhooks, control-number management, observability/monitoring, and merchant support.

Does the 1% apply to both Customer and Order Control Numbers?
Yes. The fee applies to each successful payment processed via BillPay channels, regardless of control-number type.

How are partial payments handled?
Each successful payment against a control number (including partials) is processed and charged individually.

Can I still assign control numbers from the Merchant Dashboard without using the API?
Yes. The Dashboard flow remains available for manual workflows and quick starts; the API adds automation and system-to-system control.

Who pays the fee, us or our customers?
By default, fees for BillPay are charged to the merchant account.

Where do I see the fees and settlements?
In your settlement reports and transaction detail within the Merchant Dashboard (and via our reporting/Query APIs)

Do you have any questions about this setup? Contact us here: https://clickpesa.com/customer-support/

Category: Mobile Money, Payment Acceptance
Previous Post:circular bot remittance tipsInternational Money Transfer and Remittances to Tanzania through TIPS

Sidebar

Recent Posts

  • Introducing BillPay APIs for Invoices and Customers
  • International Money Transfer and Remittances to Tanzania through TIPS
  • How to Safely Make Payments to Safari Tour Operators in Tanzania
  • How to Add Developers to the ClickPesa Developers Portal for Payment Integration
  • Track Invoice Payments in Excel Using ClickPesa Control Numbers

Archives

  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • September 2022
  • January 2022
  • October 2021
  • November 2019
  • September 2019
  • July 2019
  • June 2019
  • February 2019
  • December 2018
  • September 2018
  • September 2017
  • August 2017

Categories

  • Advisory
  • Banks
  • Blockchain/DLT
  • Bulk Payments
  • Cross Border Payments
  • e-commerce
  • e-Invoice
  • Mobile Money
  • Payment Acceptance
  • Research
  • Uncategorized

Sign up for an account

Register
Legal

Terms and Conditions

Privacy Policy

Data Retention Policy

Security

Company

About Us

Our Leadership

Customer Support

Insights

Social Media
  • Facebook
  • Instagram
  • Twitter
  • LinkedIn
  • Medium
  • YouTube
Address

Mezzanine Floor (next to Mgen)
Victoria Place, Kibisho Street, 102, Dar es Salaam, Tanzania


DLT CP TANZANIA COMPANY LIMITED trading as CLICKPESA TANZANIA is licensed by Bank of Tanzania (BoT) under the Payments System Licensing and Approval Regulations 2015, License No: NBPSL No. 0000-31, to provide Payment System Services in Mainland Tanzania as well as Tanzania Zanzibar.

© ClickPesa Limited – All Rights Reserved