Search Expense Category
Headers
Query parameters
Fetches expense categories matching the q parameter using a case-insensitive partial match on the category name. If q is blank, an empty response is returned.
Fetches expense categories matching the q parameter using a case-insensitive partial match on the category name. If q is blank, an empty response is returned.
This endpoint allows users to search for expense categories based on a query parameter. It is particularly useful for retrieving specific categories related to expenses, such as allowances, travel costs, and other financial classifications.
GET
q=Daily Allowance will search for categories related to daily allowances.The response will return a JSON object containing the following structure:
categories (array): An array of category objects matching the search query.
Each category object includes:
id (integer): The unique identifier for the category.
name (string): The name of the category.
This response indicates that the search has been executed, returning an array of categories that match the provided query. If no categories are found, the array may be empty.