SwiftWallet v3 API
Collect with M-Pesa STK push, pay out to phones, Pochi, paybills and tills, and track every transaction from your own systems.
Base URL
https://swiftwallet.co.ke/v3Version
3.0Format
JSON, amounts in whole KESPaths work with or without a trailing slash (/v3/stk-initiate and /v3/stk-initiate/). Successful responses are {"success": true, ...} with the fields at the top level.
AI Guide
A skill a coding assistant follows to integrate SwiftWallet: authentication, collections, payouts, and signed webhooks.
The file is swiftwallet-ai-guide.skill. Unzip it and move the swiftwallet folder into .cursor/skills/ so the path is .cursor/skills/swiftwallet/SKILL.md. Keep that folder name. In Claude, upload the .skill file. Then ask the assistant to add SwiftWallet to your app.
Changes from the legacy v3 API
- API keys are accepted only in the
Authorization: Bearerheader. Anapi_keyin the query string or body returns401 API_KEY_NOT_IN_HEADER. POST /v3/account/(account creation) was removed and returns410 ENDPOINT_REMOVED. Sign up on the website.GET /v3/account/still works.- Keys are shown once at creation and stored hashed. Each key has its own scopes, optional IP allowlist (
403 IP_NOT_ALLOWED), optional expiry and revoke. - Every callback is signed with
X-SwiftWallet-Signature, including STK, B2C, B2Pochi, B2B and reversal results. Callback URLs must be public HTTPS. See Webhooks. - SwiftPay and POS endpoints are not available on this platform (
410).
Endpoints
Collections
STK Push
Prompt a customer's phone to pay into one of your payment channels.
Collections
Lipa na M-Pesa
Prompt a customer to pay a paybill or till you name in the request.
Payouts
B2C payout
Send money from your payments wallet to an M-Pesa phone.
Payouts
B2Pochi payout
Send money to a Pochi la Biashara wallet.
Payouts
B2B payment
Pay a paybill or till from your payments wallet.
Payouts
Reversals
Reverse a completed B2C, B2Pochi or B2B payment.
Account
Wallet
Balances of your service wallet (fees, subscriptions) and payments wallet (collections, payouts), and STK top-ups.
Account
Transactions
List your transactions or look one up. Use this to confirm a callback before fulfilling an order.
Account
Payment channels
The paybills, tills, bank settlements and wallet channel that STK collections land in.
Account
Account
Your profile and wallet balances.
Meta
Fees
The base tariff. Per-account waivers apply at charge time and are not listed.
Meta
Service status
Health of STK, B2C, B2B and wallet services, and a transaction's event timeline.