Five ways to get paid.
One place they all land.
A till payment, a paybill payment, an STK prompt, a link sent on WhatsApp and an invoice are five different conversations with Safaricom. They become one row in one ledger, with one shape of event, before they reach you.
Which matters more than it sounds. The businesses that struggle with M-Pesa are rarely the ones that cannot take a payment. They are the ones taking payments four different ways and reconciling the four by hand on the last Friday of the month.
curl https://api.nostrel.com/v1/api/collections \ -H "Authorization: Bearer sk_live_••••••••" \ -H "Idempotency-Key: order-1042" \ -d phone=254712345678 \ -d amount=1850 \ -d reference=SC-1042POST https://your-server.test/hooks/nostrelNOSTREL-Signature: t=1790000000,v1=5f2a...9cContent-Type: application/json