working api call for expenses