Insight

Insight into income, grouped by revenue account.

GET
https://firefly.example.com/api/v1/insight/income/revenue

This endpoint gives a summary of the income received by the user, grouped by revenue account.

Parameters

X-Trace-Idstring<uuid>header

Unique identifier associated with this request.

startstring<date>requiredquery

A date formatted YYYY-MM-DD.

endstring<date>requiredquery

A date formatted YYYY-MM-DD.

accounts[]Array<integer>query

The accounts to be included in the results. If you add the accounts ID's of revenue accounts, only those accounts are included in the results. If you include ID's of asset accounts or liabilities, only deposits to those asset accounts / liabilities will be included. You can combine both asset / liability and deposit account ID's. Other account ID's will be ignored.

Response

A list of revenue accounts and income details. Each revenue account has one row per currency.

Response fields application/json
Show child attributes
idstring

This ID is a reference to the original object.

Example
123
namestring

This is the name of the object.

Example
Land lord
differencestring

The amount spent or earned between start date and end date, a number defined as a string, for this object and all asset accounts.

Example
-123.45
difference_floatnumber<double>

The amount spent or earned between start date and end date, a number as a float, for this object and all asset accounts. May have rounding errors.

Example
-123.45
currency_idstring

The currency ID of the expenses listed for this account.

Example
5
currency_codestring

The currency code of the expenses listed for this account.

Example
EUR
400Bad RequestBadRequestResponse

Bad request

Response fields application/json
messagestring
Example
Bad Request
exceptionstring
Example
BadRequestHttpException

Unauthenticated

Response fields application/json
messagestring
Example
Unauthenticated
exceptionstring
Example
AuthenticationException
404Not FoundNotFoundResponse

Page not found

Response fields application/json
messagestring
Example
Resource not found
exceptionstring
Example
NotFoundHttpException
422Unprocessable EntityValidationErrorResponse

Validation error. The body will have the exact details.

Response fields application/json
messagestring
Example
The given data was invalid.
errorsobject
Show child attributes
emailArray<string>
forceArray<string>
blockedArray<string>
fieldArray<string>
roleArray<string>
blocked_codeArray<string>
nameArray<string>
typeArray<string>
ibanArray<string>
startArray<string>
endArray<string>
dateArray<string>
500Internal Server ErrorInternalExceptionResponse

Internal exception

Response fields application/json
messagestring
Example
Internal Exception
exceptionstring
Example
InternalException

Authorization

firefly_iii_authoauth2

OAuth2 authorization code flow. Create a client on your installation's /profile page; it authorizes at /oauth/authorize and issues tokens at /oauth/token there. The URLs below are the demo site's. How to use the API walks through it.

local_bearer_authhttp (bearer)

A Personal Access Token, sent as a bearer token. Create one on your installation under Options > Profile > OAuth > Personal Access Tokens.