Endpoint details
GET/isw/payments/billerCategories
This endpoint does not require any parameters and returns all biller categories configured for your terminal ID.
Service implementation
ThegetCategories() method in PaymentsService handles the category retrieval:
PaymentsService.java:106-119
How it works
Build endpoint URL
Constructs the full endpoint URL using the billers root and terminal ID:
{BILLERS_ROOT}/categories-by-client/{TERMINAL_ID}/{TERMINAL_ID}Generate auth headers
Creates Interswitch authentication headers using the auth token and terminal key from the key exchange.
Making a request
Use the Postman collection or make a direct HTTP request:The middleware automatically handles authentication, so you don’t need to manually include auth headers when calling the middleware endpoints.
Error handling
Ensure that:- Your client credentials are properly configured in
application.properties - The terminal ID is valid and active
- Network connectivity to the Phoenix API is available
Response format
The endpoint returns a JSON response containing all available biller categories. Each category includes:- Category ID (used to fetch billers in that category)
- Category name
- Category description
- Other metadata
Next steps
Once you have the category IDs, you can:Get billers by category
Use the category ID to retrieve all billers within that category