Skip to Content
Pesa VoucherDeveloper Documentation

Pesa Voucher Developer Documentation

Pesa Voucher official guide on how to integrate Voucher functionality and float management into your systems and applications.


Overview

Welcome to the Pesa Voucher official documentation. This guide is the single source of truth for merchants integrating our float-based, dual-channel payment system optimized for Kenya and East Africa.

Pesa Voucher enables instant deposits (via M-Pesa STK Push or voucher redemption) and fast withdrawals (via M-Pesa B2C) — all powered by a prepaid float that eliminates settlement delays.


How It Works: The Float-Based System

Pesa Voucher pre-funds a float (in USD or KES) with the merchant. This float is held by the merchant and used exclusively for real-time user redemptions.

Float Flow

User ActionTransaction TypeEffect on Merchant FloatExample
Deposit (C2B)M-Pesa STK or VoucherDeductionKES 1,000 deposit → Float ↓ by KES 1,000
Withdrawal (B2C)M-Pesa payoutAdditionKES 1,500 withdrawal → Float ↑ by KES 1,500

No per-transaction settlement — instant credit, zero delay.


Core Integration Flows

1. Deposits

  • M-Pesa Direct: Real-time STK Push → instant credit
  • Voucher Redemption: Pre-purchased code → instant credit

2. Withdrawals

  • M-Pesa B2C: Direct payout from float
  • Internal Voucher Wallet: Credit to user’s Pesa Voucher account

Integration Essentials

FeatureDetails
RESTful APIsSecure, JSON-based endpoints for all operations
WebhooksReal-time deposit.success, withdrawal.success, float.low
SandboxFull simulation with test keys
DashboardMonitor float, transactions, API usage
Go-LiveTypically 3–5 days

Quick Onboarding Steps

  1. Contact sales to get your merchant account
  2. Receive your credentials (Merchant ID, API Key, API Secret)
  3. Whitelist your server IP(s)
  4. Set your callback/webhook URL
  5. Test thoroughly in sandbox
  6. Go live!

Next Step: See Authentication to get started.