Returns a profit and loss report covering the last 12 months based on the specified filters.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
GET
/api-v1/pl/report/annual
curl \
--request GET 'https://wyzio.app/api-v1/pl/report/annual'
Response examples (200)
[
{
"templateLineName": {
"id": 42,
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"children": [],
"sign": "ASSETS",
"type": "NONE",
"calculationTemplateLineIds": [
42
],
"periods": [
{
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z",
"data": {
"total": 42.0,
"margin": 42.0,
"lastYearTotal": 42.0,
"lastYearMargin": 42.0,
"change": 42.0,
"changeAmount": 42.0,
"changeAmountProportion": 42.0,
"budget": {
"id": 42,
"parent": 42,
"period": {
"id": 42,
"fiscalYear": 42,
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z"
},
"name": "string",
"reportType": "PL",
"status": "ACTIVE",
"department": 42,
"article": 42,
"contact": 42,
"orderId": 42,
"entries": [
{
"id": 12345678,
"reportLine": 12345678,
"date": "2026-11-01T00:00:00.000Z",
"value": 5.55,
"newValue": 5.55,
"total": 5.55,
"chart": 12345678,
"hasChildBudget": false
}
],
"warnings": "string",
"officeId": 42,
"isReadOnly": true
},
"lastYearBudget": {
"id": 42,
"parent": 42,
"period": {
"id": 42,
"fiscalYear": 42,
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z"
},
"name": "string",
"reportType": "PL",
"status": "ACTIVE",
"department": 42,
"article": 42,
"contact": 42,
"orderId": 42,
"entries": [
{
"id": 12345678,
"reportLine": 12345678,
"date": "2026-11-01T00:00:00.000Z",
"value": 5.55,
"newValue": 5.55,
"total": 5.55,
"chart": 12345678,
"hasChildBudget": false
}
],
"warnings": "string",
"officeId": 42,
"isReadOnly": true
},
"ytdBudget": {
"id": 42,
"parent": 42,
"period": {
"id": 42,
"fiscalYear": 42,
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z"
},
"name": "string",
"reportType": "PL",
"status": "ACTIVE",
"department": 42,
"article": 42,
"contact": 42,
"orderId": 42,
"entries": [
{
"id": 12345678,
"reportLine": 12345678,
"date": "2026-11-01T00:00:00.000Z",
"value": 5.55,
"newValue": 5.55,
"total": 5.55,
"chart": 12345678,
"hasChildBudget": false
}
],
"warnings": "string",
"officeId": 42,
"isReadOnly": true
},
"ytd": 42.0,
"ytdMargin": 42.0,
"ytdLastYear": 42.0,
"ytdLastYearMargin": 42.0
}
}
],
"accountBalances": [
{
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z",
"data": [
{
"accountId": 42,
"accountNumber": 42,
"account": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"balance": 42.0,
"lastYearBalance": 42.0,
"margin": 42.0,
"lastYearMargin": 42.0,
"change": 42.0,
"changeAmount": 42.0,
"changeAmountProportion": 42.0,
"budget": {
"id": 42,
"parent": 42,
"period": {
"id": 42,
"fiscalYear": 42,
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z"
},
"name": "string",
"reportType": "PL",
"status": "ACTIVE",
"department": 42,
"article": 42,
"contact": 42,
"orderId": 42,
"entries": [
{
"id": 12345678,
"reportLine": 12345678,
"date": "2026-11-01T00:00:00.000Z",
"value": 5.55,
"newValue": 5.55,
"total": 5.55,
"chart": 12345678,
"hasChildBudget": false
}
],
"warnings": "string",
"officeId": 42,
"isReadOnly": true
},
"lastYearBudget": {
"id": 42,
"parent": 42,
"period": {
"id": 42,
"fiscalYear": 42,
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z"
},
"name": "string",
"reportType": "PL",
"status": "ACTIVE",
"department": 42,
"article": 42,
"contact": 42,
"orderId": 42,
"entries": [
{
"id": 12345678,
"reportLine": 12345678,
"date": "2026-11-01T00:00:00.000Z",
"value": 5.55,
"newValue": 5.55,
"total": 5.55,
"chart": 12345678,
"hasChildBudget": false
}
],
"warnings": "string",
"officeId": 42,
"isReadOnly": true
},
"ytdBudget": {
"id": 42,
"parent": 42,
"period": {
"id": 42,
"fiscalYear": 42,
"startDate": "2026-05-04T09:42:00Z",
"endDate": "2026-05-04T09:42:00Z"
},
"name": "string",
"reportType": "PL",
"status": "ACTIVE",
"department": 42,
"article": 42,
"contact": 42,
"orderId": 42,
"entries": [
{
"id": 12345678,
"reportLine": 12345678,
"date": "2026-11-01T00:00:00.000Z",
"value": 5.55,
"newValue": 5.55,
"total": 5.55,
"chart": 12345678,
"hasChildBudget": false
}
],
"warnings": "string",
"officeId": 42,
"isReadOnly": true
},
"ytdBalance": 42.0,
"ytdMargin": 42.0,
"ytdLastYearBalance": 42.0,
"ytdLastYearMargin": 42.0,
"hasWarnings": true
}
]
}
],
"total": 42.0,
"hasWarnings": true,
"id": 42,
"parentId": 42,
"position": 42
}
]