GET /api-v1/pl/report/annual

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • templateLineName object
      Hide templateLineName attributes Show templateLineName attributes object
      • id integer
      • en string
      • fr string
      • de string
      • it string
    • children array[object]
    • sign string

      Values are ASSETS, LIABILITY, INCOME, or EXPENSE.

    • type string

      Values are NONE, ACCOUNTS, or CALCULATIONS.

    • calculationTemplateLineIds array[integer]
    • periods array[object]
      Hide periods attributes Show periods attributes object
      • startDate string(date-time)
      • endDate string(date-time)
      • data object
        Hide data attributes Show data attributes object
        • total number
        • margin number
        • lastYearTotal number
        • lastYearMargin number
        • change number
        • changeAmount number
        • changeAmountProportion number
        • budget object
          Hide budget attributes Show budget attributes object
          • id integer
          • parent integer
          • period object Required
            Hide period attributes Show period attributes object
            • id integer Required
            • fiscalYear integer(int32)
            • startDate string(date-time)
            • endDate string(date-time)
          • name string Required
          • reportType string

            Values are BALANCE_SHEET, PL, CASH_FLOW, or RATIOS.

          • status string

            Values are ACTIVE or INACTIVE.

          • department integer
          • article integer
          • contact integer
          • orderId integer
          • entries array[object]
            Hide entries attributes Show entries attributes object
            • id integer
            • reportLine integer
            • date string(date-time)
            • value string
            • total number
            • chart integer
            • hasChildBudget boolean
          • warnings string
          • officeId integer
          • isReadOnly boolean
        • lastYearBudget object
          Hide lastYearBudget attributes Show lastYearBudget attributes object
          • id integer
          • parent integer
          • period object Required
            Hide period attributes Show period attributes object
            • id integer Required
            • fiscalYear integer(int32)
            • startDate string(date-time)
            • endDate string(date-time)
          • name string Required
          • reportType string

            Values are BALANCE_SHEET, PL, CASH_FLOW, or RATIOS.

          • status string

            Values are ACTIVE or INACTIVE.

          • department integer
          • article integer
          • contact integer
          • orderId integer
          • entries array[object]
            Hide entries attributes Show entries attributes object
            • id integer
            • reportLine integer
            • date string(date-time)
            • value string
            • total number
            • chart integer
            • hasChildBudget boolean
          • warnings string
          • officeId integer
          • isReadOnly boolean
        • ytdBudget object
          Hide ytdBudget attributes Show ytdBudget attributes object
          • id integer
          • parent integer
          • period object Required
            Hide period attributes Show period attributes object
            • id integer Required
            • fiscalYear integer(int32)
            • startDate string(date-time)
            • endDate string(date-time)
          • name string Required
          • reportType string

            Values are BALANCE_SHEET, PL, CASH_FLOW, or RATIOS.

          • status string

            Values are ACTIVE or INACTIVE.

          • department integer
          • article integer
          • contact integer
          • orderId integer
          • entries array[object]
            Hide entries attributes Show entries attributes object
            • id integer
            • reportLine integer
            • date string(date-time)
            • value string
            • total number
            • chart integer
            • hasChildBudget boolean
          • warnings string
          • officeId integer
          • isReadOnly boolean
        • ytd number
        • ytdMargin number
    • accountBalances array[object]
      Hide accountBalances attributes Show accountBalances attributes object
      • startDate string(date-time)
      • endDate string(date-time)
      • data array[object]
        Hide data attributes Show data attributes object
        • accountId integer
        • accountNumber integer
        • account object
          Hide account attributes Show account attributes object
          • en string
          • fr string
          • de string
          • it string
        • balance number
        • lastYearBalance number
        • margin number
        • lastYearMargin number
        • change number
        • changeAmount number
        • changeAmountProportion number
        • budget object
          Hide budget attributes Show budget attributes object
          • id integer
          • parent integer
          • period object Required
            Hide period attributes Show period attributes object
            • id integer Required
            • fiscalYear integer(int32)
            • startDate string(date-time)
            • endDate string(date-time)
          • name string Required
          • reportType string

            Values are BALANCE_SHEET, PL, CASH_FLOW, or RATIOS.

          • status string

            Values are ACTIVE or INACTIVE.

          • department integer
          • article integer
          • contact integer
          • orderId integer
          • entries array[object]
            Hide entries attributes Show entries attributes object
            • id integer
            • reportLine integer
            • date string(date-time)
            • value string
            • total number
            • chart integer
            • hasChildBudget boolean
          • warnings string
          • officeId integer
          • isReadOnly boolean
        • lastYearBudget object
          Hide lastYearBudget attributes Show lastYearBudget attributes object
          • id integer
          • parent integer
          • period object Required
            Hide period attributes Show period attributes object
            • id integer Required
            • fiscalYear integer(int32)
            • startDate string(date-time)
            • endDate string(date-time)
          • name string Required
          • reportType string

            Values are BALANCE_SHEET, PL, CASH_FLOW, or RATIOS.

          • status string

            Values are ACTIVE or INACTIVE.

          • department integer
          • article integer
          • contact integer
          • orderId integer
          • entries array[object]
            Hide entries attributes Show entries attributes object
            • id integer
            • reportLine integer
            • date string(date-time)
            • value string
            • total number
            • chart integer
            • hasChildBudget boolean
          • warnings string
          • officeId integer
          • isReadOnly boolean
        • ytdBudget object
          Hide ytdBudget attributes Show ytdBudget attributes object
          • id integer
          • parent integer
          • period object Required
            Hide period attributes Show period attributes object
            • id integer Required
            • fiscalYear integer(int32)
            • startDate string(date-time)
            • endDate string(date-time)
          • name string Required
          • reportType string

            Values are BALANCE_SHEET, PL, CASH_FLOW, or RATIOS.

          • status string

            Values are ACTIVE or INACTIVE.

          • department integer
          • article integer
          • contact integer
          • orderId integer
          • entries array[object]
            Hide entries attributes Show entries attributes object
            • id integer
            • reportLine integer
            • date string(date-time)
            • value string
            • total number
            • chart integer
            • hasChildBudget boolean
          • warnings string
          • officeId integer
          • isReadOnly boolean
        • ytdBalance number
        • ytdMargin number
        • hasWarnings boolean
    • total number
    • hasWarnings boolean
    • id integer
    • parentId integer
    • position integer(int32)
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/pl/report/annual
curl \
 --request GET 'https://wyzio.app/api-v1/pl/report/annual' \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42"
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": "BALANCE_SHEET",
            "status": "ACTIVE",
            "department": 42,
            "article": 42,
            "contact": 42,
            "orderId": 42,
            "entries": [
              {
                "id": 42,
                "reportLine": 42,
                "date": "2026-05-04T09:42:00Z",
                "value": "string",
                "total": 42.0,
                "chart": 42,
                "hasChildBudget": true
              }
            ],
            "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": "BALANCE_SHEET",
            "status": "ACTIVE",
            "department": 42,
            "article": 42,
            "contact": 42,
            "orderId": 42,
            "entries": [
              {
                "id": 42,
                "reportLine": 42,
                "date": "2026-05-04T09:42:00Z",
                "value": "string",
                "total": 42.0,
                "chart": 42,
                "hasChildBudget": true
              }
            ],
            "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": "BALANCE_SHEET",
            "status": "ACTIVE",
            "department": 42,
            "article": 42,
            "contact": 42,
            "orderId": 42,
            "entries": [
              {
                "id": 42,
                "reportLine": 42,
                "date": "2026-05-04T09:42:00Z",
                "value": "string",
                "total": 42.0,
                "chart": 42,
                "hasChildBudget": true
              }
            ],
            "warnings": "string",
            "officeId": 42,
            "isReadOnly": true
          },
          "ytd": 42.0,
          "ytdMargin": 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": "BALANCE_SHEET",
              "status": "ACTIVE",
              "department": 42,
              "article": 42,
              "contact": 42,
              "orderId": 42,
              "entries": [
                {
                  "id": 42,
                  "reportLine": 42,
                  "date": "2026-05-04T09:42:00Z",
                  "value": "string",
                  "total": 42.0,
                  "chart": 42,
                  "hasChildBudget": true
                }
              ],
              "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": "BALANCE_SHEET",
              "status": "ACTIVE",
              "department": 42,
              "article": 42,
              "contact": 42,
              "orderId": 42,
              "entries": [
                {
                  "id": 42,
                  "reportLine": 42,
                  "date": "2026-05-04T09:42:00Z",
                  "value": "string",
                  "total": 42.0,
                  "chart": 42,
                  "hasChildBudget": true
                }
              ],
              "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": "BALANCE_SHEET",
              "status": "ACTIVE",
              "department": 42,
              "article": 42,
              "contact": 42,
              "orderId": 42,
              "entries": [
                {
                  "id": 42,
                  "reportLine": 42,
                  "date": "2026-05-04T09:42:00Z",
                  "value": "string",
                  "total": 42.0,
                  "chart": 42,
                  "hasChildBudget": true
                }
              ],
              "warnings": "string",
              "officeId": 42,
              "isReadOnly": true
            },
            "ytdBalance": 42.0,
            "ytdMargin": 42.0,
            "hasWarnings": true
          }
        ]
      }
    ],
    "total": 42.0,
    "hasWarnings": true,
    "id": 42,
    "parentId": 42,
    "position": 42
  }
]