2001C2B / B2C resultM-Pesa error 2001: Invalid initiator information
This is a C2B / B2C result code — it applies to customer-to-business validation or business-to-customer disbursement flows.
What causes it
For B2C and other secured APIs, the initiator username / RSA-encrypted SecurityCredential does not match the shortcode or has expired. (Note: on an STK Push callback, ResultCode 2001 means the customer entered the wrong PIN — see the STK result entry.)
How to fix it
Re-encrypt the initiator password with Safaricom's RSA public cert, confirm the initiator belongs to the shortcode, and renew before expiry.
How paylod handles this
paylod records and decodes every C2B and B2C result, and lets you test the flow without hosting your own validation and confirmation callbacks — so you spend less time on Daraja plumbing and edge-case result codes.
See the paylod M-Pesa API