Two primitives.Every M‑Pesa flow.

Collect with STK Push. Pay out with B2C. Both report back through signed webhooks, with no Daraja setup on your side.

STK Push. One call puts the prompt on their phone. You get the receipt.

API reference

Order ord_8841

KES 2,450

PENDING
  1. 0 ms

    POST /v1/payments/stk

    Idempotency-Key: ord_8841

  2. 0.4 s

    Prompt sent to 0712 ••• 482

    Paybill 247247 · Account 0170291

  3. 9.8 s

    Customer entered M-PESA PIN

  4. 10.1 s

    Confirmed by M-Pesa

    mpesa_receipt QK7XH2LM9P

  5. 10.2 s

    Webhook delivered

    200 · your-app.com/hooks

  1. 1

    Your server sends the request

    Amount, phone and your order reference.

  2. 2

    Your customer enters their PIN

    The M-Pesa prompt lands on their phone in seconds.

  3. 3

    You get the webhook

    status SUCCESS, with the mpesa_receipt.

POST/v1/payments/stk
const stk = await palpluss.stkPush({
  amount: 2450,
  phone: "0712345678",
  accountReference: "ORDER-1042",
  callbackUrl: "https://yourapp.com/hooks",
});

stk.status; // "PENDING" until the webhook
Any Paybill or Till
Your own shortcode, or a bank Paybill like Equity 247247.
KES 3, flat
Per request from KES 10. KES 1 to 9 is free.
Retries never pay twice
An Idempotency-Key returns the original request.
Any number format
07, 01, +254 or 254. We normalise it.

B2C Payouts. Pay hundreds of people in one run. Failures undo themselves.

API reference

Payout run

March payroll

Recipients
248
Paid
186
Returned
1
RecipientAmountStatus
Akinyi NjorogeKES 18,000SUCCESS
Barasa TomKES 9,500SUCCESS
Chebet LydiaKES 12,250FAILED
Wekesa FelixKES 22,750PENDING
Ouma BrianKES 15,000PENDING
  1. 1

    Fund your B2C wallet

    Top up once from the console.

  2. 2

    Send the payout

    One number or hundreds, each with an Idempotency-Key.

  3. 3

    Money lands, or comes back

    Successes carry a receipt. Failures return to your wallet.

POST/v1/b2c/payouts
const payout = await palpluss.b2cPayout(
  { amount: 18000, phone: "0722000105", reference: "PAY-0312" },
  { idempotencyKey: "payroll-mar-0312" },
);

payout.status; // "PENDING" until the webhook
Bulk in one request
Any number of M-Pesa numbers in one API call.
Automatic reversal
A failed payout lands back in your B2C wallet.
Fees from KES 6
Tiered by payout amount.
No Safaricom paperwork
One KYC approval. No shortcode or certificates.

Side by side. Most products use both: collect at checkout, pay out later.

STK Push compared with B2C Payouts
STK PushB2C Payouts
Money movesCustomer → youMoney movesYou → anyone
Who actsCustomer enters their PINWho actsNobody. It just lands
Settles intoYour Paybill, Till or bank PaybillSettles intoRecipient's M-Pesa, from your B2C wallet
FeeKES 3 per request from KES 10FeeFrom KES 6, tiered by amount
Built forCheckout, invoices, subscriptionsBuilt forPayroll, refunds, commissions
EndpointPOST /v1/payments/stkEndpointPOST /v1/b2c/payouts

Built into both. Signed webhooks, locked-down keys and one console for every shilling.

See pricing

Webhook deliveries

  • 14:02:11STK Pushord_8841SUCCESS
  • 14:02:08B2Cpay_0312SUCCESS
  • 14:01:57B2Cpay_0309FAILED
  • 14:01:40STK Pushord_8839SUCCESS
  • 14:01:22STK Pushord_8838FAILED
  • 14:00:59STK Pushord_8836SUCCESS
POST your-app.com/hooks200 Signed IP whitelisted
{
  "transaction": {
    "status": "SUCCESS",
    "amount": 2450,
    "mpesa_receipt": "QK7XH2LM9P",
    "external_reference": "ord_8841"
  }
}
Signed webhooks
Verify every event came from PalPluss.
IP whitelisting
Lock your API keys to your own servers.
One console
Volume, success rates and every receipt.
Public status page
Live uptime at status.palpluss.com.

Start building today.

Create an account and get KES 15 in free tokens to send your first live M‑Pesa STK Push in minutes.