Get Bills by Category
Endpoint: GET /bill/assigned/byCategoryId/{categoryId}
Description: Retrieves a list of bills associated with a specific category ID.
Authentication: Basic Auth (Username, Password)
Path Parameters:
categoryId (required): The ID of the category (e.g., 4 for Electricity - Prepaid).
Response:
200 OK: Returns a JSON array of bill objects.
Sample Implementation
curl --request GET \
--url 'http://154.113.16.142:9999/provipay/webapi/bill/assigned/byCategoryId/4' \
--header 'Authorization: Basic <base64-encoded-username:password>'
Example Response:
[
{
"bill_id": 7,
"category_id": "4",
"description": "Ikeja Electric - DML bill",
"list_order": "1",
"name": "Ikeja Electric - IKEDC",
"source_id": ""
},
...
]
Last updated