Search Expense service
Headers
Query parameters
Searches expense services using the q parameter with a case-insensitive partial match on the service name. Returns an empty response if q is blank or not provided.
Searches expense services using the q parameter with a case-insensitive partial match on the service name. Returns an empty response if q is blank or not provided.
This endpoint allows users to search for expenses based on a query parameter. The query parameter q is used to specify the type of expense being searched for.
Method: GET
URL: {{host}}/apis/external/search/searchExpenseService?q=Food
The response will return a JSON object containing an array of items that match the search criteria. Each item in the array represents an expense and includes the following fields:
id: A unique identifier for the expense.
name: The name of the expense.
This example response shows two expense items related to the search term “Food”. Each item includes an id and a name representing the expense.
This endpoint allows users to search for expense items based on a query parameter. It is particularly useful for retrieving specific expense categories or items.
Method: GET
URL: {{host}}/apis/external/search/searchExpenseService
Query Parameters:
q (string): The search term to filter expense items. For example, using q=Food will return expense items related to food.The response will return a JSON object containing an array of items that match the search criteria.
Response Structure:
items (array): An array of expense items.
Each item in the array contains:
id (integer): A unique identifier for the expense item.
name (string): The name of the expense item.
Ensure that the query parameter q is properly encoded to handle special characters.
The response may contain multiple items or none, depending on the search term provided.