Overview
The Miscellaneous class provides utility methods for accessing reference data like supported banks, countries, and states. This information is essential for building forms and validating user input.Methods
listBanks
Get a list of all supported banks and their details. Use this to populate bank selection dropdowns and get bank codes for verification.Parameters
The country to get banks for. Options:
nigeria, ghana, kenya, south africaNumber of results per page (max: 100)
Use cursor-based pagination
Filter for banks that support pay with bank transfer
Filter for banks that support pay with bank
Filter for banks that are enabled for account verification
Cursor for the next page (when using cursor pagination)
Cursor for the previous page (when using cursor pagination)
Filter by gateway type. Options:
emandate, digitalBankMandateFilter by bank type
Filter by currency. Options:
NGN, USD, GHS, ZAR, KES, XOFInclude NIP sort code in the response
Response
Indicates whether the request was successful
A message describing the result
Array of bank objects
listCountries
Get a list of all supported countries and their configuration details.Parameters
This method takes no parameters.Response
Indicates whether the request was successful
A message describing the result
Array of country objects
listStates
Get a list of all states in a specific country. Useful for address verification and form population.Parameters
The country code (e.g., “NG” for Nigeria)
Response
Indicates whether the request was successful
A message describing the result
Array of state objects
Common Use Cases
Building a Bank Selection Form
Address Verification
Error Handling
All methods return a result object withdata and error properties:
Related Resources
Verification
Use bank codes for account verification
Paystack Miscellaneous API
Official Paystack Miscellaneous API documentation

