### M-Pesa API Endpoints Source: https://developer.safaricom.co.ke/Documentation/index Safaricom offers M-Pesa API endpoints for Business-to-Business (B2B), Business-to-Consumer (B2C), and Consumer-to-Business (C2B) transactions. These APIs are built on REST principles, with data represented as HTTP resources accessed via standard HTTP verbs. ```APIDOC ## M-Pesa APIs Overview ### Description Safaricom provides RESTful API endpoints for various M-Pesa services, including B2C, C2B, and B2B transactions. These APIs allow partners to integrate M-Pesa functionality into their applications. ### Supported Services - **B2C (Business-to-Consumer):** Facilitates transactions from a business to individual consumers. - **C2B (Consumer-to-Business):** Enables consumers to initiate payments to a business. - **B2B (Business-to-Business):** Supports transactions between businesses. ### API Characteristics - **Protocol:** REST - **Data Format:** JSON for requests and responses (including errors). - **HTTP Methods:** Primarily GET and POST. - **Status Codes:** Comply with HTTP status codes (RFC 2616). ### Integration Details APIs can be invoked using REST clients (e.g., Postman, SoapUI) or command-line tools (e.g., Curl, Node.js). Code samples in various languages (Curl, Ruby, PHP, Python, NodeJS, Java) and sample JSON responses are available. ``` -------------------------------- ### Data Protection Act Compliance Source: https://developer.safaricom.co.ke/Documentation/index Information regarding Safaricom's initiative to minimize the use and transfer of customer identifiable data in compliance with the Data Protection Act. ```APIDOC ## Data Minimization Initiative ### Description In compliance with the Data Protection Act (effective November 25, 2019), Safaricom has implemented a data minimization initiative. This initiative aims to reduce the amount of customer identifiable data used and transferred during M-Pesa transactions, statement generation, and SMS communications. ### Key Aspects - **Reduced Data in M-Pesa Statements:** Limits the number of names displayed. - **Hashed/Masked Mobile Numbers:** Employs techniques to obscure mobile numbers. - **Compliance:** Ensures adherence to data privacy regulations. ### Project Completion This data minimization activity was concluded on November 30, 2023. ### Support and Issues If you experience any issues with the M-PESA system due to the hashed API solution, please contact: - m-pesabusiness@safaricom.co.ke - apisupport@safaricom.co.ke - FssSupportTeam@safaricom.co.ke When reporting issues, provide a comprehensive description, including the impacted short codes. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.