Payouts: mobile money
Pay out from your Swichi wallet to a mobile money account, and follow or cancel the payout.
Pay out to Airtel Money, Mixx by Yas and HaloPesa (M-Pesa payouts open later). Send
POST /v1/payouts with the amount, "currency": "TZS", your reference, an
Idempotency-Key and a destination of type mobile_money with the phone and name.
# Pay out to mobile money. Numbers ending in 001 are paid at once in the sandbox. save: PAYOUT_ID=id
curl https://gateway.swichi.cc/v1/payouts \
-H "Authorization: Bearer $SWICHI_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: supplier-77" \
-d '{"amount": 10000, "currency": "TZS", "reference": "supplier-77", "destination": {"type": "mobile_money", "phone": "0688 000 001", "name": "Juma Ali"}}'Supported networks
Swichi picks the network from the number in destination.phone.
| Network | Payouts |
|---|---|
| Airtel Money | Yes |
| Mixx by Yas | Yes |
| HaloPesa | Yes |
| M-Pesa (Vodacom) | Not yet: the request is refused at once with method_not_available |
The smallest payout is set by Swichi (TZS 500 by default). A smaller amount is refused at once
with amount_too_small; no money is held.
What happens next
| Status | Meaning |
|---|---|
pending | It is being sent |
pending_approval | It is over your approval threshold and waits for Finance |
in_cooldown | It waits, for example until the next day for a new business |
succeeded | The money reached the account |
failed | It could not be sent; the money and fee are back in your wallet |
Until it is sent, POST /v1/payouts/{id}/cancel gives the money back. Swichi tells your server
with the payout.succeeded, payout.failed and payout.pending_approval
webhooks.
The payout and its fee come out of your wallet: with too little, the request fails with
insufficient_funds. Over a limit it answers
limit_exceeded. Retry with the same Idempotency-Key: the
money moves once (Idempotency).