Ask a customer to approve a payment on their phone with a USSD push. The final outcome is delivered asynchronously to your callback URL.
Create C2B push collection
Sends a USSD push to the customer's phone asking them to approve a payment. The customer approves or rejects the request on their handset.
The response only confirms the push was accepted for processing
(transactionStatus: ROUTED). Wait for the callback or
query the transaction for the final result.
On final success, the provider collection wallet is credited and your total balances are updated.
Headers
X-Client-IdClient identifier issued during onboarding.
X-Request-IdUnique identifier for this request, used for traceability. A UUID is recommended.
X-Idempotency-KeyUnique key for this operation. Sending the same key with the same body returns the
original result. Reusing a key with a different body is rejected (PGW-1004).
X-Timestamp^[0-9]{10}$ · requiredCurrent time as a 10-digit Unix epoch timestamp in seconds.
X-NonceUnique random value for every request, used to prevent replay attacks.
X-Content-SHA256SHA-256 hash of the raw request body, Base64-encoded. For requests without a body, hash
the empty string (47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=).
X-SignatureOptional Base64-encoded HMAC-SHA256 request signature. Only validated when signing was enabled for your integration during onboarding.
Create C2B push collection › Request Body
requestIdYour unique identifier for this request. Generate a new one for every payment.
merchantIdMerchant identifier issued during onboarding.
providerCodeMobile network wallet tree the request is posted to.
- YAS
- YAS (formerly Tigo) wallet tree
- VODACOM
- Vodacom M-Pesa wallet tree
- AIRTEL
- Airtel Money wallet tree
- HALOTEL
- Halopesa wallet tree
amountAmount to move. Must be greater than zero and within your merchant limits. No thousands separators.
currencyTransaction currency.
msisdn^255[0-9]{9}$ · requiredCustomer mobile number in international format, starting with 255.
referenceYour business reference, such as an invoice, order or payout number. Use one per payment.
callbackUrlHTTPS endpoint that receives the final result. Optional if a callback URL is configured on your merchant profile; the request value overrides it only if allowed by policy.
narrationOptional note or payment description.
Create C2B push collection › Responses
Collection request accepted and routed to the provider.
statusWhether the API call itself was processed. For the payment outcome, read data.transactionStatus.
codeResult code. PGW-0000 means success.
messagerequestIdEcho of your request identifier.
timestampISO-8601 timestamp with timezone.
dataEndpoint-specific payload. null on errors.

