• 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

Track Invoice Payments in Excel Using ClickPesa Control Numbers

Home » Insights » Track Invoice Payments in Excel Using ClickPesa Control Numbers
May 22, 2025
Excel

Managing invoice payments manually can be overwhelming, especially when working from spreadsheets. If you’re sending out multiple invoices and waiting on mobile money or bank transfers, matching payments to customers becomes time-consuming and error-prone.

ClickPesa’s Order BillPay Control Number system makes it possible to generate unique payment references per invoice and automatically track payments, even from a simple Excel sheet.

ClickPesa’s Order BillPay Control Number system makes it possible to generate unique payment references per invoice and automatically track payments, even from a simple Excel sheet.

This guide walks through how to:

  • Create Order BillPay Control Numbers in Excel
  • Share them with customers
  • Automatically update the Excel sheet when payments are received

The Problem

Imagine you have a list of 50 unpaid invoices in an Excel file. For each invoice, you want to:

  • Assign a unique, trackable payment reference
  • Let customers pay via mobile money or bank
  • Automatically see which invoice has been paid (or partially paid)
  • Avoid manually checking statements or guessing who paid what

This is exactly what Order BillPay Control Numbers solve.


What Is an Order BillPay Control Number?

An Order BillPay Control Number is a dynamic number used by customers when making a payment. It is generated by combining:

  1. Your Merchant BillPay-Namba (a 4-digit number assigned to you by ClickPesa)
  2. Your Order Reference (e.g., the invoice number from your Excel sheet)

Formula:

Order BillPay Control Number = [BillPay-Namba] + [Order Reference]

Example:

  • BillPay-Namba: 1122
  • Invoice Number: INV0045
  • Control Number: 1122INV0045

This control number is shared with the customer, who uses it when paying via mobile money or bank.


Step-by-Step: Tracking Invoice Payments in Excel

Step 1: Prepare Your Excel Sheet

Start with a basic sheet containing your invoice data. Include the following columns:

Invoice NumberCustomer NameAmount DueControl NumberPayment StatusAmount Paid
INV001Jane Doe150,000 TZS1122INV001Unpaid0
INV002John Smith200,000 TZS1122INV002Unpaid0
  • Column A: Invoice number
  • Column D: Concatenate your BillPay-Namba with the invoice number
    • Formula: ="1122"&A2
  • Columns E and F will be automatically updated when payments are received

Step 2: Share the Control Numbers with Customers

You can now send payment instructions to each customer using their unique control number. This can be done via:

  • Email
  • PDF invoice
  • SMS or WhatsApp message

Make sure to clearly display the Order BillPay Control Number and inform customers that they can pay using:

  • M-Pesa
  • Airtel Money
  • Tigopesa
  • Halopesa
  • CRDB Bank (App, USSD, Wakalas, Internet Banking)

Step 3: Set Up Webhook Integration with Power Automate

ClickPesa sends a webhook whenever a payment is made using a BillPay Control Number. To automatically update your Excel sheet, you’ll use Power Automate, Microsoft’s no-code automation tool.

Why Power Automate?

  • Excel (VBA or Office Scripts) can’t receive incoming webhooks
  • Power Automate can create an HTTP endpoint and update Excel Online

How It Works:

  1. Create a new Power Automate flow with the trigger “When an HTTP request is received”
  2. Paste the following JSON schema for the request body:
{
  "type": "object",
  "properties": {
    "orderReference": { "type": "string" },
    "controlNumber": { "type": "string" },
    "amountPaid": { "type": "number" },
    "status": { "type": "string" }
  }
}
  1. Add Excel Online (Business) action: “List rows present in a table”
    • File: Choose your invoice tracker Excel file on OneDrive or SharePoint
    • Table: Ensure your Excel file has a table defined
  2. Add a “Filter array” step to match the row where Invoice Number equals orderReference
  3. Add “Update a row” action to:
    • Set Payment Status to “Paid” or “Partially Paid” based on amountPaid
    • Set Amount Paid to the received value
  4. Save the flow. Power Automate gives you a URL. Paste this URL into ClickPesa as your webhook endpoint.

Bonus: Add Conditional Formatting

In Excel, use conditional formatting to visually mark:

  • Green: Paid
  • Yellow: Partially Paid
  • Red: Unpaid

This gives you a fast visual overview of the invoice status.


Summary Workflow

  1. List invoices in Excel
  2. Generate control numbers using your BillPay-Namba + invoice number
  3. Share the numbers with customers
  4. Set up a Power Automate webhook to update Excel
  5. Automatically update payment status when payment is received

Final Thoughts

You don’t need expensive tools to track mobile money and bank payments. With ClickPesa’s Order BillPay Control Numbers and a basic Excel setup, you can fully automate invoice tracking with just a bit of Power Automate integration.

If you like any other integration, reach out to ClickPesa, anything is possible with the APIs

Category: Mobile Money
Previous Post:Order BillPayAutomatically Reconcile Payments Using Order BillPay Control Numbers

Sidebar

Recent Posts

  • Track Invoice Payments in Excel Using ClickPesa Control Numbers
  • Automatically Reconcile Payments Using Order BillPay Control Numbers
  • How to connect ClickPesa with Google Sheet
  • ClickPesa Launches New Payment APIs in Tanzania
  • How to Create and Use BillPay Numbers in Tanzania

Archives

  • 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