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

FieldTypeDescription
pageIdstringPage offset of results

Attributes

FieldTypeDescription
idstringUnique identifier for the category
namestringName of the category

Request Params

KeyDatatypeRequiredDescription
pageIdnullPage offset of results

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
X-Api-Keystring
X-Partner-Idstring
Authorizationstring

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":{}}