Skip to main content

Bank list

Introduction

The Bank List API provides a list of banks along with their corresponding bank codes. This documentation outlines how to access the API endpoint and understand the structure of the response.

Endpoint

https://api.mypayd.app/v1/sasapay/banks

Code Examples

Below are code examples in different programming languages demonstrating how to send money to a mobile number using HTTP POST requests.

curl --location --request GET 'https://api.mypayd.app/v1/sasapay/banks'

Response Format

The API response is a JSON array containing objects for each bank. Each object includes the following attributes:

bank_name: The name of the bank. bank_code: The unique bank code assigned to the bank.

Example of a successful response

[
{
"bank_name": "ABC Bank",
"bank_code": "35"
},
{
"bank_name": "Absa Bank Kenya Plc",
"bank_code": "03"
},
{
"bank_name": "Bank of Africa",
"bank_code": "19"
}
]


Conclusion

The Bank List API simplifies the process of retrieving a comprehensive list of banks and their corresponding bank codes. By integrating this API into your applications, you can enhance the user experience and streamline banking-related processes.