Gets a list of expense_categories
Changed onLists tax rates
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Replaces the default response index from data to a user specific string
ie.
?index=new_index
response is wrapped
{
'new_index' : [
.....
]
}
The number of records to return for each request, default is 20
The page number to return for this request (when performing pagination), default is 1
Order the list by choosing a column and direction. Each value uses the form column|asc or column|desc.
Single sort — for example sort=name|asc.
Multiple sorts — for example
sort[]=id|desc&sort[]=name|asc.
Only columns on expense_categories are recognized. Unsupported keys are ignored.
[ "name|asc" ]
Response
A list of expense_categories
Example response
{
"data": [
{
"id": "Opnel5aKBz",
"name": "Accounting",
"user_id": "XS987sD",
"is_deleted": true,
"updated_at": 2,
"created_at": 2
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 1,
"current_page": 1,
"total_pages": 1
}
}
}Changes
- info
added the new optional
queryrequest parametersort
- info
- info
added the new optional
queryrequest parameterpage - info
added the new optional
queryrequest parameterper_page - info
the response optional property
//became read-only for the status
- info