Documentation Index
Fetch the complete documentation index at: https://docs.pesahub.co/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Sends a USSD push prompt to the customer’s phone, asking them to authorize a payment from their mobile money wallet. Supports M-Pesa, Airtel Money, Halopesa, Mixx by Yas, and TIPS Dynamic QR.Endpoint
Authentication
Requires a Bearer token in theAuthorization header.
Request Headers
| Header | Value |
|---|---|
Accept | application/json |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
amount | integer | ✅ | Amount to charge in the specified currency |
currency | string | ✅ | Currency code (e.g., TZS) |
phone_number | string | ✅ | Customer’s phone number (e.g., 0692993353) |
metadata | object | ❌ | Arbitrary key-value pairs for your reference |
metadata.order_id | string | ❌ | Your internal order identifier |
metadata.customer_note | string | ❌ | A note about the payment |
Example Request
Request Body Example
The customer will receive a USSD prompt on their phone to confirm the payment. Ensure the phone number matches an active mobile money account.