Get profit and loss for the last 12 months
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
GET /api-v1/pl/report/annual
curl \
-X GET http://wyzio.app/api-v1/pl/report/annual \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string"
Response examples (200)
[
{
"accountBalances": [
{
"data": [
{
"account": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"accountNumber": 42,
"balance": 42.0,
"budget": {
"change": 42.0,
"difference": 42.0,
"value": 42.0
},
"change": 42.0,
"changeAmount": 42.0,
"changeAmountProportion": 42.0,
"hasWarnings": true,
"lastYearBalance": 42.0,
"lastYearBudget": {
"change": 42.0,
"difference": 42.0,
"value": 42.0
},
"lastYearMargin": 42.0,
"margin": 42.0,
"ytdBalance": 42.0,
"ytdBudget": {
"change": 42.0,
"difference": 42.0,
"value": 42.0
},
"ytdMargin": 42.0
}
],
"endDate": "2024-05-04T09:42:00+00:00",
"startDate": "2024-05-04T09:42:00+00:00"
}
],
"calculationTemplateLineIds": [
42
],
"children": [
{}
],
"hasWarnings": true,
"id": 42,
"parentId": 42,
"periods": [
{
"data": {
"budget": {
"change": 42.0,
"difference": 42.0,
"value": 42.0
},
"change": 42.0,
"changeAmount": 42.0,
"changeAmountProportion": 42.0,
"lastYearBudget": {
"change": 42.0,
"difference": 42.0,
"value": 42.0
},
"lastYearMargin": 42.0,
"lastYearTotal": 42.0,
"margin": 42.0,
"total": 42.0,
"ytd": 42.0,
"ytdBudget": {
"change": 42.0,
"difference": 42.0,
"value": 42.0
},
"ytdMargin": 42.0
},
"endDate": "2024-05-04T09:42:00+00:00",
"startDate": "2024-05-04T09:42:00+00:00"
}
],
"position": 42,
"sign": "ASSETS",
"templateLineName": {
"de": "string",
"en": "string",
"fr": "string",
"id": 42,
"it": "string"
},
"total": 42.0,
"type": "NONE"
}
]