Get profit and loss for the last 12 months

GET /api-v1/pl/report/annual

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • accountBalances array[object]
      Hide accountBalances attributes Show accountBalances attributes object
      • data array[object]
        Hide data attributes Show data attributes object
        • account object
          Hide account attributes Show account attributes object
          • de string
          • en string
          • fr string
          • it string
        • accountNumber integer
        • balance number
        • budget object
          Hide budget attributes Show budget attributes object
          • change number
          • difference number
          • value number
        • change number
        • changeAmount number
        • changeAmountProportion number
        • hasWarnings boolean
        • lastYearBalance number
        • lastYearBudget object
          Hide lastYearBudget attributes Show lastYearBudget attributes object
          • change number
          • difference number
          • value number
        • lastYearMargin number
        • margin number
        • ytdBalance number
        • ytdBudget object
          Hide ytdBudget attributes Show ytdBudget attributes object
          • change number
          • difference number
          • value number
        • ytdMargin number
      • endDate string(date-time)
      • startDate string(date-time)
    • calculationTemplateLineIds array[integer]
    • children array[object]
    • hasWarnings boolean
    • id integer
    • parentId integer
    • periods array[object]
      Hide periods attributes Show periods attributes object
      • data object
        Hide data attributes Show data attributes object
        • budget object
          Hide budget attributes Show budget attributes object
          • change number
          • difference number
          • value number
        • change number
        • changeAmount number
        • changeAmountProportion number
        • lastYearBudget object
          Hide lastYearBudget attributes Show lastYearBudget attributes object
          • change number
          • difference number
          • value number
        • lastYearMargin number
        • lastYearTotal number
        • margin number
        • total number
        • ytd number
        • ytdBudget object
          Hide ytdBudget attributes Show ytdBudget attributes object
          • change number
          • difference number
          • value number
        • ytdMargin number
      • endDate string(date-time)
      • startDate string(date-time)
    • position integer(int32)
    • sign string

      Values are ASSETS, LIABILITY, INCOME, or EXPENSE.

    • templateLineName object
      Hide templateLineName attributes Show templateLineName attributes object
      • de string
      • en string
      • fr string
      • id integer
      • it string
    • total number
    • type string

      Values are NONE, ACCOUNTS, or CALCULATIONS.

  • 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 "TARGET-ORGANIZATION-ID: 42" \
 --header "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": "2025-05-04T09:42:00Z",
        "startDate": "2025-05-04T09:42:00Z"
      }
    ],
    "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": "2025-05-04T09:42:00Z",
        "startDate": "2025-05-04T09:42:00Z"
      }
    ],
    "position": 42,
    "sign": "ASSETS",
    "templateLineName": {
      "de": "string",
      "en": "string",
      "fr": "string",
      "id": 42,
      "it": "string"
    },
    "total": 42.0,
    "type": "NONE"
  }
]