McTaba Labs logo
Software EngineeringThe WhiteboardProjectsEventsMasterclassesWebinarsLearn
Book Call

500+ developers already in the community

Get answers, find accountability partners, and stay ahead

Join Discord →
McTaba Labs logo

Educating 1 million students in tech by 2030.

Programs

  • HighSchool Graduates Launchpad
  • AI & Business Automation
  • Corporate Training
  • McTaba Story & Mission
  • Full-Stack Curriculum
  • Course Pricing & Plans
  • Frequently Asked Questions

Resources

  • Join Discord Community
  • Tech Events in Nairobi
  • Masterclasses
  • Free Resources
  • Learn
  • Campus
  • Africa Tech Talent Report
  • Partner With Us
  • Start a Project
  • Our Work

Contact Us

  • 124 Manyani East Road, Lavington, Nairobi
  • +254727795603
  • Book a Discovery Call

Office Hours:

Mon-Fri: 9am - 2pm EAT

Sat: 10am - 12pm EAT

© 2027 McTaba Labs - A product of Edtech Industries. All rights reserved.

Privacy PolicyTerms of ServiceRefund Policy
  1. Learn
  2. Learn to Code in Tanzania
  3. Tigo Pesa API Integration in Tanzania: Developer Guide
Bonaventure OgetoBy Bonaventure Ogeto|Updated June 4, 2026

Tigo Pesa API Integration in Tanzania: Developer Guide

Tigo Pesa (now operated under the MIC Tanzania / Tigo brand) provides an API for C2B, B2C, and B2B transactions. You register on the Tigo Pesa developer portal, get API credentials, and integrate using REST endpoints. The flow is the same as every East African mobile money API: send a request, the customer confirms on their phone, receive a callback with the result. Direct API access from Tigo has historically been difficult for small developers. Most Tanzanian developers access Tigo Pesa through aggregators like Selcom, Azampay, or ClickPesa, which provide a single API for all three rails.

In this article

  1. 1. Tigo Pesa in the Tanzanian Payment Landscape
  2. 2. How the Tigo Pesa API Works
  3. 3. Getting API Access: The Reality
  4. 4. Structuring Your Code for Multiple Rails
  5. 5. How to Learn Tigo Pesa Integration

Tigo Pesa in the Tanzanian Payment Landscape

Tanzania has three mobile money providers: Vodacom M-Pesa, Tigo Pesa, and Airtel Money. Tigo Pesa is operated by MIC Tanzania (the Tigo brand). It is the second-largest mobile money platform in the country and has a significant user base, especially outside Dar es Salaam.

For developers, ignoring Tigo Pesa means turning away a large chunk of potential customers. Unlike Kenya, where M-Pesa dominates with over 90% market share, Tanzania's mobile money market is split across three providers. A checkout page that only supports one rail loses transactions from the other two.

The good news: Tigo Pesa's API follows the same fundamental pattern as Vodacom M-Pesa and Airtel Money. If you have integrated one, the others are a matter of adjusting endpoints, authentication, and payload formats. The architecture is identical.

Since 2014, Tanzania has had full mobile money interoperability. Customers can send money from Tigo Pesa to M-Pesa or Airtel Money and back. But interoperability is a user feature, not a developer feature. Your code still needs to handle Tigo Pesa transactions through either the Tigo API or an aggregator that routes to it.

How the Tigo Pesa API Works

The Tigo Pesa API provides endpoints for the standard mobile money operations:

  • C2B (Customer to Business): Collecting payments from Tigo Pesa users. You send a request with the customer's phone number and amount. Tigo sends a USSD push to the customer's phone. They enter their PIN. You receive a callback with the result.
  • B2C (Business to Customer): Sending money to Tigo Pesa users. Used for refunds, disbursements, and payouts.
  • B2B (Business to Business): Transfers between business accounts.

The authentication mechanism involves API credentials provided during the registration process. Like Vodacom's Open API, the exact implementation has its own quirks, but the general flow is: authenticate, get a token or session, make requests with that token, handle callbacks.

The request-callback pattern deserves emphasis because it is the single most important concept in East African payment integration:

  1. Your server sends a payment request to the Tigo API.
  2. Tigo pushes a prompt to the customer's phone.
  3. The customer enters their PIN (or declines).
  4. Tigo sends a POST request to your callback URL with the transaction result.
  5. Your server processes the callback, updates the order/transaction status, and returns a response.

This is the same flow for Vodacom M-Pesa, Safaricom Daraja, Airtel Money, and MTN MoMo. Learn it once, use it everywhere.

Get weekly developer tips

Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.

No spam. Unsubscribe anytime.

Getting API Access: The Reality

Here is the part that most guides skip: getting direct Tigo Pesa API access is difficult.

Unlike Safaricom's Daraja, which lets any developer sign up and start testing in minutes, Tigo's developer onboarding process involves business verification, commercial agreements, and approval timelines that can stretch to weeks or months. For a solo developer or an early-stage startup, this process can stall a project indefinitely.

This is not unique to Tigo. All three Tanzanian telcos have more restrictive API access than Kenya's Safaricom. It is a market-wide reality.

The practical workaround is aggregators. Services like Selcom, Azampay, ClickPesa, and Pesapal have already established direct connections with all three telcos. They expose a single API that routes to Tigo Pesa, M-Pesa, and Airtel Money. You integrate once, and the aggregator handles the telco-specific details.

For a detailed comparison of the aggregator options, see our Selcom vs ClickPesa vs Pesapal vs Direct API article.

The decision is straightforward: if you have existing business relationships with Tigo or you are processing high enough volume to justify the setup effort, pursue direct integration. For everyone else, use an aggregator and focus your development time on the product, not on telco paperwork.

Structuring Your Code for Multiple Rails

Since you will likely need to support Tigo Pesa alongside M-Pesa and Airtel Money, your payment layer should be designed for abstraction from the start.

The pattern that works:

  • A payment service interface. Define a common interface with methods like initiatePayment(), handleCallback(), and checkStatus(). Each provider (or aggregator) implements this interface.
  • Provider-specific adapters. Each adapter handles the authentication, endpoint URLs, and payload formatting for one provider. The rest of your application talks to the interface, not the adapter.
  • A callback router. If you are using direct integration with multiple providers, each one sends callbacks to a different endpoint or with different formats. A central callback router normalizes the data before passing it to your business logic.

If you are using an aggregator, they handle the multi-provider abstraction for you. Your code talks to one API and receives normalized callbacks. This is the main reason aggregators save development time.

Whether you go direct or through an aggregator, store the provider name (tigo_pesa, mpesa, airtel_money) and the raw callback payload alongside each transaction in your database. When something goes wrong (and it will), having the raw data makes debugging possible.

How to Learn Tigo Pesa Integration

There is no widely available Tigo Pesa integration course as of mid-2026. The documentation is limited, developer community resources are sparse, and most Tanzanian developers learn through aggregator documentation rather than direct Tigo API docs.

Here is the practical learning path:

  1. Learn the pattern on a well-documented API. Safaricom's Daraja has the best developer documentation, the most active community, and an instant sandbox. McTaba's M-Pesa Integration for Developers course (KES 9,999 / ~TZS 200,000) teaches the full request-callback pattern, webhook handling, and error management using Daraja.
  2. Apply the pattern through an aggregator. Sign up for Selcom or Azampay's sandbox. Integrate their API to handle Tigo Pesa payments. The request-callback architecture you learned with Daraja applies directly.
  3. Scale to direct integration if needed. Once your volume justifies it, pursue direct Tigo API access. By this point, you understand the architecture. The adaptation is credentials, endpoints, and payload formats.

This path is honest about a market reality: the best sandbox experience and learning materials are on Daraja. Using that as your training ground and then adapting to Tanzanian providers is more productive than struggling with limited documentation from the start.

Key Takeaways

  • ✓Tigo Pesa follows the same request-callback (webhook) pattern as Vodacom M-Pesa and Airtel Money. The architecture is not new if you have integrated any East African mobile money API.
  • ✓Direct Tigo Pesa API access is notoriously hard to get for individual developers and small businesses. Aggregators are the practical path for most projects.
  • ✓Tigo Pesa, M-Pesa, and Airtel Money are fully interoperable in Tanzania since 2014. Customers can send money between providers, but your integration still needs to handle each provider separately (or use an aggregator that abstracts them).
  • ✓If you learn the mobile money integration pattern once, on any provider, you can apply it to Tigo Pesa. McTaba teaches this pattern through Safaricom Daraja (KES 9,999 / ~TZS 200,000), and the skills map directly.

Frequently Asked Questions

Is Tigo Pesa the same as Tigo Money?
Tigo Pesa is the mobile money service operated by Tigo (MIC Tanzania) in Tanzania specifically. "Tigo Money" is sometimes used informally but the official Tanzanian product name is Tigo Pesa. In other countries where Tigo operates, the mobile money branding may differ.
Can I test Tigo Pesa integration without a business registration?
Direct Tigo Pesa sandbox access typically requires a business relationship. The practical alternative is to use an aggregator sandbox (Selcom, Azampay, or ClickPesa), which lets you test Tigo Pesa transactions without direct telco approval. For learning the underlying pattern, Safaricom's Daraja sandbox is freely accessible and teaches the same architecture.
Do I need to integrate Tigo Pesa separately if Tanzania has interoperability?
Yes. Interoperability means customers can send money between providers (Tigo to M-Pesa, for example). But for business payments, customers still pay from their specific wallet. Your checkout needs to accept payments from Tigo Pesa users. An aggregator handles this for you with one API. Direct integration requires separate work for each provider.

Start learning for free

Create a free McTaba Academy account. Access starter lessons, join the community, and explore at your own pace.

Create Free Account

Keep reading

Vodacom M-Pesa API Integration in Tanzania: The Developer Guide

Tanzania's M-Pesa runs on Vodacom, not Safaricom. The API, authentication, and developer portal are completely different from Kenya's Daraja. Here is how the Vodacom M-Pesa integration actually works, step by step.

Read more

Airtel Money API Integration in Tanzania: Developer Guide

Airtel Money is the third major mobile money rail in Tanzania. The API follows the same request-callback architecture as M-Pesa and Tigo Pesa. Here is how the integration works, where to get access, and why learning any mobile money API prepares you for this one.

Read more

How to Accept Mobile Money Payments on a Website in Tanzania (All 3 Rails)

Tanzania runs on three mobile money rails: M-Pesa (Vodacom), Tigo Pesa, and Airtel Money. Your website needs to support all three. Here is how to build a checkout that accepts payments from every Tanzanian mobile money user.

Read more

Selcom vs ClickPesa vs Pesapal vs Direct API in Tanzania: Which Should You Use?

Four aggregators or direct telco APIs: that is the decision every Tanzanian developer building a payment integration faces. Here is the honest comparison based on developer experience, fees, access speed, and when each option makes sense.

Read more

Mobile Money Interoperability in Tanzania: What Developers Need to Know

Tanzania was the first African country to achieve full mobile money interoperability in 2014. M-Pesa, Tigo Pesa, and Airtel Money users can send money to each other across providers. Here is what that means for developers building payment systems.

Read more

Explore related topics

African Tech Ecosystem

Guides, salary data, and resources for developers building products in the African tech ecosystem.

Breaking Into Tech

Practical, no-nonsense guides for anyone looking to start or change their career in tech. From choosing your first language to acing interviews.

Learning to Code

Roadmaps, language guides, and practical advice for learning to code and launching a programming career.

Learn to Code in Rwanda

Everything you need to learn to code and build a tech career in Rwanda. MoMo integration, training reviews, salary data, and career guides written for the Rwandan context.

Learn to Code in Uganda

Everything you need to learn to code and build a tech career in Uganda. MoMo integration, training reviews, salary data, and career guides written for the Ugandan context.

Bonaventure Ogeto

Bonaventure Ogeto

Founder, McTaba Labs

Bonaventure is the founder of McTaba Labs, a coding bootcamp in Nairobi, Kenya. He has spent years building products for the African market and mentoring the next generation of developers across the continent.