10:30
STEP 1 OF 5

STK Push Request

Do you want to pay

KSh 2,565

to

CODESPHERE
MERCHANT SERVICES

Enter your M-PESA PIN
STEP 2 OF 5

Processing Payment

Please wait...

STEP 3 OF 5
STK Push Sent Customer notified
PIN Verified Authentication successful
Payment Received Merchant credited
STEP 4 OF 5

CODESPHERE Wallet

B2C Transaction Initiated
Validating Recipient
Funds Transferred
B2C Completed

Transaction Successful

Welcome to

CODESPHERE API GATEWAY

Transact Fast, Transact Safe
Serving Merchants Nationwide

Kenya's Next-Generation Merchant Payment Infrastructure

Accept payments, automate collections, send payouts, manage merchants and integrate M-PESA seamlessly through one secure enterprise platform.

99%

Platform Uptime %

24

Hour Monitoring

100

Merchant Focus

Merchant Dashboard

Live
Today's Collections

KES 0

Merchant Services
Wallet (B2C)
STK Push
Developer API
Payment Successful
API Connected
Secure Gateway

One Platform.
Two Powerful Payment Solutions.

CODESPHERE enables businesses to seamlessly receive payments from customers while also making secure payouts from a single enterprise platform.

Customer

Initiates Payment to your business Till Number, M-PESA Paybill or Bank Account from the App or Website
CODESPHERE

CODESPHERE

API GATEWAY processes the request using secure HTTPS protocols

Merchant

Receives Payment on the account and the developer receives a callback to use for the processing of their databases and tables

Business

Initiates Payout from their app or website to pay a client either one or in bulk. Note that this amount is paiud without charging any fee on the initiated amount.

CODESPHERE Wallet

Secure B2C Engine that confirms your Wallet Float, Processes the payment to your client phone number, Notify you via the email and sends a callback.

Employee / Supplier

Receives Funds from `CODESPHERE MERCHANT SERVICES` and business can trck it via Codesphere Transactions portal

Real-Time Processing

Fast and reliable transaction handling designed for modern businesses.

Enterprise Security

Secure integrations, authenticated requests, and encrypted communication.

Developer Friendly

Simple APIs, clear documentation, webhooks, and easy integration workflows.

Business Insights

Monitor collections, payouts, settlements, and transaction performance from one dashboard.

Two Powerful Platforms.
One Trusted Infrastructure.

Whether you're collecting payments or sending them, CODESPHERE provides everything your business needs through one secure ecosystem.

CODESPHERE MERCHANT SERVICES

Customer to Business (C2B)

Accept payments securely from customers through M-PESA PayBill, Till Number and Bank Paybills while monitoring every transaction in real time.

  • M-PESA PayBill Integration
  • Till Number Integration
  • STK Push API
  • Transaction Dashboard
  • Settlement Reports
  • Callback Management
  • Merchant Analytics
  • Developer APIs
Become a Merchant

CODESPHERE WALLET

Business to Customer (B2C)

Send secure payouts to customers, employees, suppliers, affiliates and partners through one centralized business wallet.

  • Bulk Payments
  • Employee Payroll
  • Supplier Payments
  • Affiliate Commissions
  • Customer Refunds
  • Wallet Transfers
  • Payment Scheduling
  • Payout Reports
Open Wallet

Which Platform Fits Your Business?

Compare both CODESPHERE solutions and choose the one that best matches your payment workflow—or combine both for a complete payment ecosystem.

Merchant Services

CODESPHERE Wallet

Primary Purpose Receive Customer Payments Send Business Payouts
Payment Type C2B B2C
Ideal For Merchants & Businesses Employers & Organizations
Integrations PayBill, Till, STK Push Wallet API, Bulk Payments
Reports Collections & Settlements Payout & Wallet Reports
API Support
Webhooks
COMPLETE PAYMENT ECOSYSTEM

Build Your Entire Payment Infrastructure with CODESPHERE API GATEWAY

Receive customer payments, automate collections, manage settlements, send secure payouts, integrate developer APIs, and monitor every transaction from one enterprise platform designed for businesses of every size.

Customers
CODESPHERE CODESPHERE
Business
Wallet

Everything Your Business Needs.
All In One Dashboard.

Monitor collections, payouts, API performance, merchant activity and transaction analytics through one intelligent dashboard.

https://codesphereapi.co.ke/merchant

Merchant Overview

● System Online
Today's Collections

KES 2,451,800

Wallet Balance

KES 845,300

Success Rate

99.98%

Active Merchants

1,254

Transaction Analytics

Recent Transactions

Reference Service Amount Status
CPA125487 STK Push KES 2,500 Successful
CPA125488 Wallet Payout KES 15,000 Successful
CPA125489 Merchant Payment KES 850 Processing

Build Faster With Our APIs

Integrate Merchant Services, Wallet Payouts, STK Push and payment verification using simple, secure and well documented REST APIs.

Everything Developers Need

From authentication to callbacks, CODESPHERE API GATEWAY gives developers everything needed to launch secure payment solutions quickly.

REST APIs

Developer Friendly

< 150ms

Average Response

OAuth & API Keys

Secure Access

99.99%

Platform Uptime

Secure API Keys

Authentication with generated API credentials.

Fast REST APIs

Optimized endpoints for quick integrations.

Webhooks

Receive payment updates instantly.

Secure Authentication

Encrypted communication and verified requests.
$ curl -X POST https://api.codesphereapi.co.ke/stkpush/initiate/
{
      "merchant_id":"MERCHANT001",
      "amount":"2500",
      "phone":"2547XXXXXXXX",
      "reference":"INV1001",
      "callback_url":"https://example.com/callback"
    }
200 OK
{
      "status":"success",
      "transaction_id":"CPA987654",
      "message":"STK Push Sent",
      "request_time":"0.34s"
    }

Built For Every Business

Whether you're a startup, enterprise, school, online business or government institution, CODESPHERE API GATEWAY scales with your needs.

E-Commerce

Merchant Ready

Accept online payments securely from customers.

Schools

Enterprise Ready

Fee collection and automated reconciliation.

Hospitals

Enterprise Ready

Fast patient billing and payment processing.

Churches

API Integration

Secure tithes, offerings and donation payments.

Enterprises

API Integration

High-volume payment automation and reporting.

Transport

API Integration

Receive passenger and logistics payments easily.

Hotels

Merchant Ready

Secure reservations and guest payment collection.

SMEs

API Integration

Affordable payment infrastructure for growing businesses.

Flexible Pricing For Every Business

Choose the solution that best fits your business. No hidden charges. Secure infrastructure. Enterprise support.

CODESPHERE MERCHANT SERVICES

Basic STK Push
KSh 400 /Month
KSh 400 1 Month
KSh 1,140 3 Months
KSh 2,100 6 Months
  • STK Push Integration
  • Displays CODESPHERE MERCHANT SERVICES on STK prompt
  • Merchant Dashboard
  • API Keys
  • Transaction Reports
  • Callback Support
  • Email Support
Get Started

CODESPHERE WALLET

Business Payouts (B2C)
KSh 539 /Month

Transaction Fee: 0.5% of the processed amount.

  • Wallet Dashboard
  • Bulk Payments
  • Employee Payroll
  • Supplier Payments
  • Customer Refunds
  • Transaction Reports
  • API Integration
Open Wallet

BUSINESS PAYMENTS

B2B Solution
KSh 799 /Month
  • Business-to-Business Payments
  • Enterprise Dashboard
  • API Integration
  • Secure Transfers
  • Reports & Analytics
  • Priority Support
  • Enterprise Ready
Get Started

Built With Security At Its Core

CODESPHERE API GATEWAY is engineered to provide businesses with secure payment processing, reliable integrations and enterprise tools designed for everyday operations.

Secure Infrastructure

Secure communication and modern authentication practices help protect merchant integrations and payment requests.

Reliable Platform

Built for dependable performance with continuous monitoring to support your business operations.

Merchant Verification

Business onboarding includes KYC verification to maintain a trusted merchant ecosystem.

Real-Time Monitoring

Keep track of collections, payouts, settlements and transaction activity from a unified dashboard.

Dedicated Support

Our support team is ready to assist merchants and developers throughout onboarding and integration.

Developer Friendly

REST APIs, webhooks and clear documentation help developers integrate payment services efficiently.

Secure APIs
KYC Verification
High Availability
Dedicated Support

Serving Merchants Nationwide

Trusted infrastructure for startups, SMEs, enterprises, schools, hospitals, transport companies, hotels, NGOs and many more.

Become a Merchant
Live Platform Statistics

Powering Digital Payments Across Kenya

CODESPHERE API GATEWAY is built for speed, security and reliability, helping merchants collect payments, automate disbursements and integrate M-PESA services with confidence.

99.99%
API Uptime
Highly available infrastructure designed for uninterrupted payment processing.
500
Registered Merchants
Businesses using CODESPHERE to receive and manage M-PESA payments.
3,000,000
Transactions Processed
Secure C2B, B2C and B2B transactions processed through our platform.
24
Developer Support
Dedicated assistance for merchants and developers whenever they need it.

All Services Operational

Monitoring merchant transactions in real time.

128 ms

API Response Time

99.98%

Webhook Success

Secure

SSL Encryption

Production

Environment

Ready to Power Your Business Payments?

Whether you're launching a startup, integrating an online store, managing enterprise payments or building a fintech solution, CODESPHERE API GATEWAY provides the infrastructure you need to transact with confidence.

Email support@codesphereapi.co.ke
Merchant Support Dedicated onboarding & technical assistance
Developer Documentation developers.codesphereapi.co.ke

Get Started Today

Join businesses across Kenya using CODESPHERE API GATEWAY to collect payments, automate payouts and simplify financial operations.

Secure Infrastructure Fast Onboarding Dedicated Support
Become a Merchant Merchant Login API Documentation