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
enum
required
The country to get banks for. Options:
nigeria, ghana, kenya, south africanumber
default:"50"
Number of results per page (max: 100)
boolean
default:"false"
Use cursor-based pagination
boolean
Filter for banks that support pay with bank transfer
boolean
Filter for banks that support pay with bank
boolean
Filter for banks that are enabled for account verification
string
Cursor for the next page (when using cursor pagination)
string
Cursor for the previous page (when using cursor pagination)
enum
Filter by gateway type. Options:
emandate, digitalBankMandatestring
Filter by bank type
enum
Filter by currency. Options:
NGN, USD, GHS, ZAR, KES, XOFboolean
Include NIP sort code in the response
Response
boolean
Indicates whether the request was successful
string
A message describing the result
array
Array of bank objects
listCountries
Get a list of all supported countries and their configuration details.Parameters
This method takes no parameters.Response
boolean
Indicates whether the request was successful
string
A message describing the result
array
Array of country objects
listStates
Get a list of all states in a specific country. Useful for address verification and form population.Parameters
string
required
The country code (e.g., “NG” for Nigeria)
Response
boolean
Indicates whether the request was successful
string
A message describing the result
array
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

