Get Expenses
Description:
The /expense/
endpoint retrieves a list of expense records with filtering, pagination, and inclusion options.
Method:
GET
Query Parameters:
Parameter | Type | Description |
---|---|---|
q (Optional) | string | Search query to filter expenses |
page (Optional) | integer | Page number for pagination. Default: 1 |
size (Optional) | integer | Number of expenses per page. Default: 10 |
sort (Optional) | string | Field to sort by. Default: ātransactionDateā |
order (Optional) | string | Sort order (āascā or ādescā). Default: ādescā |
type (Optional) | string | Filter by expense type |
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Comma-separated related entities to include (Artist, Product, Asset)
Search term to filter expenses by title or type
Page number for pagination (1-based)
Number of items per page
Field to sort by
Sort order ('asc' or 'desc')
asc
, desc
Success
The response is of type object
.