Thinkmate
Payments · 28 October 2026

GePG integration explained: control numbers and government payments

Everything about Tanzania's Government e-Payment Gateway: how control numbers work, how payments flow, what a complete integration includes, and how we build one.

28 October 202614 min readThinkmate team
Your systemERP · portal · billingPayercitizen · businessBanksbranch · internet · appMobile moneyM-Pesa · Airtel · MixxAgentsbank & wallet agentsCards & portalsonline channelsGePGgatewayCollection accountfunds settle here
At a glance

One gateway between government billers and every way people pay

GePG sits in the middle: institutions send bills in, payers pay through the channel they prefer, and confirmed payments flow straight back to the institution's system.

One reference per bill

Every bill gets a unique control number that every channel recognises.

Pay almost anywhere

Banks, mobile money, agents and online channels accept the same number.

Instant confirmation

GePG notifies your system the moment a payment is made.

Daily reconciliation

Your records are matched against GePG's every day, automatically.

Illustration: a government bill with a control number paid by phone

Key takeaways

  • GePG is the Government of Tanzania's single gateway for collecting payments to public institutions, run by the Ministry of Finance.
  • Every bill gets a control number. Payers quote it at a bank, on mobile money or at an agent, and the money reaches the right account.
  • Integrating your system means it can create bills, receive control numbers, get payment notifications and reconcile automatically, without manual data entry.
  • A solid integration handles signed messages, certificates, retries, partial payments, expiry and daily reconciliation, not only the "happy path".

What is GePG?

The Government e-Payment Gateway (GePG) is Tanzania's central electronic platform for payments to the government and public institutions. It is operated by the Ministry of Finance and connects three groups: the institutions that issue bills, the payment service providers (banks and mobile network operators) that collect money, and the people and businesses who pay.

Before GePG, every institution ran its own collection accounts, receipt books and bank arrangements. Payments were hard to trace, reconciliation took weeks, and cash handling created room for loss. GePG replaces that with one standard: a bill is registered electronically, it receives a unique control number, and every payment against it is confirmed electronically to both the institution and the government.

Why GePG exists

  • Transparency: every shilling collected is tied to a registered bill and traceable end to end.
  • Convenience for payers: people pay from their phone, bank app or a nearby agent instead of queueing at a cashier's window.
  • Faster revenue: money moves into collection accounts quickly and institutions see it the same day.
  • Less leakage: fewer cash transactions and manual receipts mean fewer opportunities for error or fraud.
  • One standard: banks and mobile money providers integrate once with GePG instead of separately with hundreds of institutions.

Who is involved

Service Provider (SP)

The institution that bills: a ministry, agency, local authority, regulator, university, hospital or utility. Each SP is registered on GePG and identified by its own codes.

Payment Service Provider (PSP)

Banks and mobile network operators that accept payments against control numbers through branches, apps, USSD, agents and cards.

GePG (Ministry of Finance)

Issues control numbers, routes payment confirmations, settles funds to collection accounts and provides reconciliation data.

Payer

The citizen, business or organisation paying a fee, levy, fine, tax or charge, using whichever channel suits them.

How control numbers work

A control number is the unique payment reference GePG assigns to a bill. It works like an account number for that one bill: whoever pays quotes it, and GePG knows exactly which institution, which bill and which payer the money belongs to.

  1. A bill is createdThe institution's system records what is owed: payer, service, amount, currency and expiry date.
  2. The system requests a control numberIt sends a digitally signed bill submission to GePG.
  3. GePG returns the control numberGePG validates the bill and sends the control number back to the institution's system.
  4. The payer is toldThe control number reaches the payer by SMS, email, a printed invoice or a self-service portal.
  5. The payer paysThrough a bank, mobile money wallet, agent or card, quoting the control number.
  6. GePG confirms the paymentA payment notification goes to the institution's system, which marks the bill paid and issues a receipt.
  7. Everything is reconciledEach day the institution's records are compared with GePG's transactions, so totals always agree.

Bills can be flexible. Depending on how the institution configures them, a bill can require the exact amount, accept part-payments until the balance is cleared, or accept payments up to a total. Bills also carry an expiry date, after which the control number can no longer be paid.

How payers pay

Because GePG is connected to the main payment providers, a payer can usually choose:

  • Mobile money: M-Pesa, Airtel Money, Mixx by Yas and HaloPesa, from the wallet menu or app, by choosing government payments and entering the control number.
  • Banks: over the counter, through internet or mobile banking, or at bank agents.
  • Agents: bank and mobile money agents in towns and villages.
  • Cards and online portals: where the institution offers online payment.

Whatever the channel, the payer's money and the confirmation follow the same route, so the institution does not need separate integrations for every bank or wallet.

Who needs GePG integration?

Any public institution that collects revenue, and any organisation that collects fees or charges on behalf of government, is expected to bill through GePG. In practice this includes:

Ministries & agenciesLocal government authoritiesRegulators & licensing bodies Universities, colleges & schoolsHospitals & health facilitiesWater & energy utilities Parastatals & public fundsSoftware vendors serving them

If staff are still typing control numbers from the GePG portal into a spreadsheet, or checking bank statements by hand to see who has paid, a direct system integration will save time and remove errors.

The full lifecycle

From bill to reconciled payment, step by step

Watch one licence-renewal bill travel through an integrated system. Click any step to jump to it.

New bill · Revenue system
PayerMsasani Builders LtdServiceBusiness licence renewalRevenue itemLicence fees
AmountTZS 150,000Payment typeExact amountExpires31 Dec 2026
Submit to GePG
Bill submission · signed request
<!-- simplified illustration --> <BillSubmission> <BillId>LIC-2026-004821</BillId> <Amount ccy="TZS">150000</Amount> <ExpiryDate>2026-12-31</ExpiryDate> <Payer>Msasani Builders Ltd</Payer> </BillSubmission> <Signature>MIIBIjANBgkqh…</Signature>
Signed with institution certificateAcknowledged by GePG
Control number received
BillLIC-2026-004821AmountTZS 150,000
Control number9910 4821 7735
Awaiting payment
Send to payer
Messages
Dear Msasani Builders Ltd, your licence renewal bill is TZS 150,000. Control number: 9910 4821 7735. Pay by mobile money, bank or agent before 31/12/2026.
Delivered · 09:14
Invoice PDF also sent to accounts@msasani…
Government payments
Pay with control number9910 4821 7735 Licence renewal · TZS 150,000Enter PIN ••••
Payment sent
Payment notification
Control number9910 4821 7735PaidTZS 150,000ChannelMobile moneyReceiptRCPT-88213
Bill marked paidReceipt emailedLedger posted
Download receipt
Daily reconciliation · 30 Nov 2026
Bills paid412Matched
Amount collectedTZS 61.8MMatched
Partial payments23Matched
Exceptions0Clear
Export report

Names, numbers and messages are illustrative.

Anatomy of a bill

What goes into a GePG bill

Every control number is backed by structured bill data. Getting these fields right, and mapping them correctly from your own system, is the core of a clean integration.

  1. Institution (Service Provider)Who issued the bill, as registered on GePG.
  2. Bill referenceYour own internal bill or invoice number, kept for matching.
  3. Control numberThe unique GePG reference the payer quotes on every channel.
  4. Payer detailsName, phone and email used for notifications and receipts.
  5. Revenue itemWhat the money is for, mapped to the government revenue (GFS) classification.
  6. Amount, currency & payment typeTZS or USD, and whether exact, partial or full payment is accepted.
  7. Expiry dateAfter this date the control number can no longer be paid.
  8. Payment instructionsHow to pay by mobile money, bank and agents.
1
MCMfano City CouncilRevenue Department
2Bill no.LIC-2026-004821
3Control number9910 4821 7735
4PayerMsasani Builders Ltd · 0754 ••• 970
5Revenue itemBusiness licence fee
6AmountTZS 150,000 · Exact amount
7Expires31 December 2026
8How to pay: choose Government payments in your mobile money menu or bank app, enter the control number and confirm. You can also pay at any bank branch or agent.
How we build it

A dedicated GePG connector between your system and the gateway

We don't scatter GePG calls across your application. We build a connector service that owns signing, queuing, callbacks and reconciliation, so your core system stays simple and every payment is accounted for.

Your ERP or billing systemCreates bills, shows status
Self-service portalPayers request bills and receipts
Finance & accountingReceives posted payments

Thinkmate GePG connector

Runs on your servers or our managed cloud.

Bill APICreates, updates and cancels bills from your system.
Signing & certificatesSigns every message and verifies GePG's signature.
Queue & retriesNothing is lost if GePG or the network is slow.
Callback endpointReceives control numbers and payment notifications.
ReconcilerDaily matching against GePG transactions.
NotificationsSMS and email with control numbers and receipts.
Audit logEvery request, response and change, kept and searchable.
DashboardsCollections, arrears and exceptions in real time.
GePGControl numbers, payment notifications, reconciliation files
Banks & mobile moneyCollect payments from payers
PayersReceive SMS, pay, get receipts
Messages and security

The conversations your system has with GePG

GePG integrations exchange structured, digitally signed messages. Each institution is issued codes and certificates during onboarding, and every message is signed and verified in both directions.

Bill submissionYour system sends a signed bill; GePG acknowledges receipt.
Control number responseGePG sends the control number back to your callback address.
Bill update & cancellationChange an expiry date or cancel a bill that is no longer owed.
Control number reuseIssue a new bill against an existing control number where allowed.
Payment notificationGePG posts each payment with amount, channel and receipt details.
Reconciliation requestYour system asks for the day's transactions and matches them.

Security is not optional. Private keys stay in a protected store, never in code or shared folders. Callback endpoints only accept correctly signed messages over HTTPS, and every message is logged for audit.

payment-notification.xml
<!-- Payment notification (simplified illustration) --><PaymentNotification>  <ControlNumber>991048217735</ControlNumber>  <BillId>LIC-2026-004821</BillId>  <PaidAmount ccy="TZS">150000</PaidAmount>  <Channel>MOBILE</Channel>  <PayerPhone>2557•••••970</PayerPhone>  <PspReceipt>QK7H2M9XPL</PspReceipt>  <PaidAt>2026-11-30T09:21:44</PaidAt></PaymentNotification><Signature>kq3V0r…verified ✓</Signature> // connector: verify signature → find bill → post payment// → send receipt → acknowledge to GePG (idempotent)
Field names are simplified for illustration. Real message formats follow the official GePG specification issued during onboarding.
Features we deliver

Everything a complete GePG integration should do

These are the capabilities we build into GePG projects as standard, whether we're connecting an existing system or building a new revenue platform.

Automatic bill creation

Bills are raised from your system's own events: an application, an invoice, a licence renewal or a fee schedule.

Instant control numbers

Control numbers come back into your system and appear on screens, invoices and receipts automatically.

SMS & email delivery

Payers get the control number, amount, expiry and payment steps the moment the bill is ready.

Partial & exact payments

Exact, partial or flexible bills, with running balances and instalments tracked per payer.

Expiry, updates & cancellation

Extend, update or cancel bills properly, so stale control numbers can't be paid by mistake.

Real-time payment posting

Payment notifications update the bill, the customer account and the ledger in seconds.

Receipts

Official receipts generated and sent automatically, with the payment provider's reference.

Daily reconciliation

Your records matched against GePG every day, with exceptions flagged for follow-up.

Dashboards & reports

Collections by revenue item, branch, channel and period; arrears and ageing at a glance.

Certificate management

Secure key storage, renewal reminders and a clean process when certificates change.

Retries & idempotency

Queued requests and duplicate-safe processing, so no payment is missed or posted twice.

Audit trail & roles

Every action logged, with role-based access for cashiers, accountants and auditors.

Reconciliation

See every bill, payment and exception in one place

Reconciliation is where most manual processes break down. Our dashboards show what was billed, what was paid and what still needs attention, and the daily match against GePG runs on its own.

Collections · November 2026LiveAll revenue items
Bills issued0+12% vs October
Bills paid085.8% paid
Collected (TZS)0Settled to account
Unmatched0Fully reconciled
Control numberRevenue itemTZSChannelStatus
9910 4821 7735Business licence150,000Mobile moneyPaid
9910 4821 7741Building permit420,000BankPaid
9910 4821 7758Market levy30,000AgentPartial
9910 4821 7763Advertising fee85,000—Pending
9910 4821 7779Service levy1,250,000BankPaid
Daily collections
MonTueWedThuFriSatToday
Matched with GePG100%

Illustrative data.

Our delivery process

How we implement a GePG integration

A clear path from first conversation to a live, reconciled integration. Timelines depend mostly on approvals and certificate issuance; the technical work itself is predictable.

1

Discovery

We map your billing processes and revenue items.

  • Current process review
  • Revenue items & GFS mapping
  • Integration plan
2

Onboarding

We guide you through GePG registration.

  • SP registration support
  • Codes & system IDs
  • Certificate generation
3

Build

We build or extend the connector and your screens.

  • Bill & callback APIs
  • Signing & queues
  • SMS, email, receipts
4

Testing

End-to-end tests in the GePG test environment.

  • Every message type
  • Partial & expired bills
  • Failure & retry cases
5

Go-live

Production cut-over with close monitoring.

  • Production certificates
  • Staff training
  • Hyper-care period
6

Support

We keep it running and reconciled.

  • 24/7 monitoring
  • Certificate renewals
  • Spec changes & upgrades
Common pitfalls

What goes wrong in GePG projects, and how we prevent it

Most problems don't show up in a demo. They appear months later, on a busy day. These are the ones we design out from the start.

Common problemControl numbers copied by hand

Staff generate numbers on a portal and retype them into spreadsheets.

Our approachGenerated inside your system

Bills request control numbers automatically; no retyping, no typos.

Common problemMissed payment notifications

A server restart or timeout and a payment never reaches the system.

Our approachQueued, retried, reconciled

Notifications are acknowledged only after they are safely saved, and daily reconciliation catches anything missed.

Common problemDuplicate postings

The same notification arrives twice and the payer is credited twice.

Our approachIdempotent processing

Every payment is keyed on its unique references, so repeats are recognised and ignored.

Common problemExpired certificates

Integration stops one morning because a certificate quietly expired.

Our approachRenewal tracking

Certificate expiry is monitored, with reminders well ahead of time.

Common problemPartial payments ignored

A payer pays half and the system shows the full amount still owing, or marks it paid.

Our approachBalances per bill

Partial payments update running balances and the bill closes only when it is settled.

Common problemNo audit trail

Auditors ask who changed a bill and nobody can tell.

Our approachFull audit log

Every request, response and user action is recorded and searchable.

Readiness checklist

What you need before you start

Missing something? That's normal. We help with every item on this list as part of the project.

  • Registration with GePGYour institution is registered (or ready to register) as a Service Provider with the Ministry of Finance.
  • A list of revenue itemsEvery fee, levy or charge you bill for, with amounts and the right revenue classification.
  • A system that holds your billsAn ERP, billing system or portal, or a plan to build one, where bills originate.
  • A secure server and public HTTPS addressSo GePG can deliver control numbers and payment notifications to you.
  • Certificates and key custodyA named person and process for generating, storing and renewing certificates.
  • A reconciliation ownerSomeone in finance who reviews daily matching and follows up on exceptions.
FAQ

Questions people ask about GePG

What is a GePG control number?

A control number is the unique payment reference that GePG assigns to a bill. The payer quotes it when paying through a bank, mobile money or an agent, and GePG uses it to route the payment and confirmation to the right institution and bill.

Can I pay a GePG control number with M-Pesa, Airtel Money or Mixx by Yas?

Yes. Mobile money providers, including M-Pesa, Airtel Money, Mixx by Yas and HaloPesa, offer government payments in their menus and apps, where you enter the control number and confirm the amount.

Which organisations must integrate with GePG?

Public institutions that collect revenue, such as ministries, agencies, local government authorities, regulators, public universities, hospitals and utilities, as well as organisations that collect fees on behalf of government, are expected to bill through GePG.

How long does a GePG integration take?

The technical work is usually predictable; the overall timeline depends mainly on registration, approvals and certificate issuance. We plan each phase up front and work through onboarding with you so there are no surprises.

Can GePG work with our existing ERP or billing system?

Yes. We usually add a GePG connector alongside your existing system, so it can create bills, receive control numbers and post payments without being rebuilt. Where there is no suitable system, we build a revenue management platform around GePG.

What happens if a payment notification is missed?

A well-built integration queues and retries messages, acknowledges notifications only once they are saved, and runs daily reconciliation against GePG so any gap is detected and corrected automatically.

Does GePG support partial payments and USD bills?

Bills can be configured to require the exact amount, accept partial payments or accept flexible amounts, and can be issued in Tanzanian shillings or US dollars, depending on the institution's setup.

Do you provide support after go-live?

Yes. We monitor the integration, handle certificate renewals and specification changes, and provide 24/7 support so collections keep running.

Time to decide

Let's talk about your project

Leave your details and a short description of your challenge. A specialist will review it and get back to you within one business day with practical next steps.

We reply within one business day. Your details stay private.

👋 Hi! Need help with a project?