Guides
Payouts

Payouts

Disburse funds from your Swahilies balance to mobile-money wallets — supplier payments, refunds, salaries, marketplace payouts.

Scope required: psp:payout-maker

Create a payout

curl -X POST https://engine.swahilies.net/api/psp/payouts \
  -H "Authorization: Bearer swh_live_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{
    "merchant_txn_ref": "payout_7781",
    "merchant_ref": "daraja",
    "provider": "tigo",
    "msisdn": "255713334455",
    "amount_minor": 120000,
    "currency": "TZS"
  }'
FieldTypeNotes
merchant_txn_refstringYour unique reference. Idempotent.
providerstringairtel or tigo.
msisdnstringRecipient's phone in international format.
amount_minorintegerMinor units.
currencystringISO code, e.g. TZS.

Response

{
  "id": "pay_01M5...",
  "merchant_txn_ref": "payout_7781",
  "status": "pending",
  "amount_minor": 120000,
  "currency": "TZS"
}

Settlement

A payout returns pending and completes asynchronously. Swahilies sends a payout webhook with the final status. Funds are debited from your balance when the payout succeeds.

⚠️

Double-check the recipient msisdn — a successful payout to a wallet cannot be reversed by Swahilies. Use a unique merchant_txn_ref so a retry never pays twice.