curl --request GET \
--url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/profit_and_loss \
--header 'x-api-key: <api-key>'
{
"dates": [
"2023-12-25"
],
"sections": [
{
"metrics": [
{
"confidence": 123,
"indent": 123,
"is_ratio": true,
"name": "<string>",
"values": [
123
]
}
],
"name": "<string>",
"slug": "<string>"
}
]
}
Calculates the cashflow profit & loss table for an end user, based on the layout defined (if any)
curl --request GET \
--url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/profit_and_loss \
--header 'x-api-key: <api-key>'
{
"dates": [
"2023-12-25"
],
"sections": [
{
"metrics": [
{
"confidence": 123,
"indent": 123,
"is_ratio": true,
"name": "<string>",
"values": [
123
]
}
],
"name": "<string>",
"slug": "<string>"
}
]
}
If true, dates are sorted left to right by ascending order. False by default, i.e., by default sorted in descending date order so more recent dates are first
ISO 4217 currency code for balance
GBP
, USD
, EUR
"USD"
The latest transaction timestamp date to use
"2022-01-31"
The earliest transaction timestamp date to use
"2022-01-01"
OK
The response is of type object
.
Was this page helpful?