Integration flows
Every flow, step by step
Each flow is one job a partner does with KulPay: who does what and in what order, every call with a link to the
API reference, full request and response examples, the states it goes through, when the money moves, the events you
receive, the errors that matter and how to test it.
All calls go to https://gateway.kulpay.pavulla.com with your API key in Authorization: Bearer ….
Banks and agents
Money coming in at a counter or in an app: deposits, payment requests, invoices, transfers and the statements that confirm them.
The basics
What every integration needs: keys and scopes, idempotency, webhooks, test mode and errors.
API keys, scopes and modesGet keys for test and live, give each only the scopes it needs, roll them without downtime and restrict where they work.
Retrying safely (idempotency)Send every call that moves money with an Idempotency-Key, so a retry after a timeout never charges or pays twice.
Receiving webhooksRegister an endpoint, verify every signature, answer quickly, and catch up on anything you missed.
Test modeBuild and test your whole integration against test keys, with fixed inputs that give each outcome on purpose.
Handling errorsEvery error has a stable code; branch on it, show the right message, and retry only what can be retried.
Merchants
Accepting payments: mobile money, checkout, cards, refunds, links and getting paid.
Setting up to accept paymentsCreate your application, its keys and webhook, choose where the money goes, and connect your own M-Pesa, e-Mola or card account.
Mobile money paymentCharge a customer's M-Pesa or e-Mola wallet; they approve on their phone and you are told the result.
Hosted checkoutSend the customer to KulPay's payment page; they choose how to pay and come back to your site.
Card paymentTake a card through the acquirer's own fields, handle the customer's verification step, and capture or release an authorisation.
Refunds and reversalsGive money back for a paid order, in full or in part, or reverse a duplicated mobile money payment.
Charging for a referenceTake M-Pesa, e-Mola or a card on your own page for one of your customers' references, and have the money reported as an incoming transfer to that reference.
Payment links and QR codesTake a payment without building a page — a link or QR the customer opens, with a fixed or open amount.
Payment webhooks for merchantsWhich payment events to subscribe to, what each means for your order, and how to never ship an unpaid order.
Getting paidWhat you are owed per payment, the fees, the settlement batches and reports, and payouts to your approved account.
Testing a merchant integrationA checklist of every outcome to test before going live, with the test inputs for each.
Setting up in the KulPay appFor KulPay businesses — register your application, copy its key, add your webhook and connect your payment methods, from the KulPay app.
Billers
Presenting invoices, enrolling customers, the real-time contract and getting paid.
PSPs and wallets
Selling bills, payers' bills, PSP transactions, settlement and going live.
Selling bills in your appSell electricity, water, TV, airtime and school fees to your customers in four calls — list, look up, quote, pay.
Showing your customers their billsRegister your customers as payers, subscribe them to their billers with consent, list their open bills and set up autopay.
PSP transactions and name checksSend sales, payouts and refunds through one request as an originating PSP, and check a wallet holder's name before paying.
Balance, commissions and settlementFollow your prefunded balance and commissions, report what you settled each day, and match it against your statements.
From application to liveApply, pass the KYB review, agree terms, set up and certify in the sandbox, run a pilot, and go live.
Machine-readable reference: OpenAPI 3.1 spec and the event catalogue.