Retrieve Categories
GET {{base_url}}/banking/v2/categories
The ‘Get categories’ endpoint returns the list of categories that tomato pay currently supports. Category id and the category name are returned in the response.
Query Parameters
Field | Type | Description |
---|
pageId | string | Page offset of results |
Attributes
Field | Type | Description |
---|
id | string | Unique identifier for the category |
name | string | Name of the category |
Request Params
Key | Datatype | Required | Description |
---|
pageId | null | | Page offset of results |
Key | Datatype | Required | Description |
---|
Content-Type | string | | |
X-Api-Key | string | | |
X-Partner-Id | string | | |
Authorization | string | | |
RESPONSES
status: OK
{"results":[{"id":"categoryId1234","name":"Rent and Office"},{"id":"categoryId2345","name":"Other Income"},{"id":"categoryId3456","name":"Entertainment"},{"id":"categoryId4321","name":"Travel and Subsistence"},{"id":"categoryId1357","name":"Tax"},{"id":"categoryId2468","name":"Payroll"},{"id":"categoryId1122","name":"Technology"},{"id":"categoryId2244","name":"Funding and Interest"},{"id":"categoryId5678","name":"Miscellaneous"},{"id":"categoryId3355","name":"Marketing"},{"id":"categoryId7788","name":"Bank Charges and Repayments"},{"id":"categoryId7890","name":"Professional Services"},{"id":"categoryId0123","name":"Dividends"},{"id":"categoryId6543","name":"Transfers"},{"id":"categoryId1010","name":"Other Expenses"},{"id":"categoryId8989","name":"Sales"}],"links":{}}