Get balance sheet

GET /api-v1/balance-sheet

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
      • account object
        Hide account attributes Show account attributes object
        • de string
        • en string
        • fr string
        • it string
      • accountNumber integer
      • balance number
      • change number
      • changeAmount number
      • changeAmountProportion number
      • hasWarnings boolean
      • lastYearBalance number
      • lastYearMargin number
      • margin number
    • calculationTemplateLineIds array[integer]
    • change number
    • changeAmount number
    • changeAmountProportion number
    • children array[object]
    • hasWarnings boolean
    • id integer
    • lastYearMargin number
    • lastYearTotal number
    • margin number
    • parentId integer
    • 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/balance-sheet
curl \
 --request GET 'https://wyzio.app/api-v1/balance-sheet' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
[
  {
    "accountBalances": [
      {
        "account": {
          "de": "string",
          "en": "string",
          "fr": "string",
          "it": "string"
        },
        "accountNumber": 42,
        "balance": 42.0,
        "change": 42.0,
        "changeAmount": 42.0,
        "changeAmountProportion": 42.0,
        "hasWarnings": true,
        "lastYearBalance": 42.0,
        "lastYearMargin": 42.0,
        "margin": 42.0
      }
    ],
    "calculationTemplateLineIds": [
      42
    ],
    "change": 42.0,
    "changeAmount": 42.0,
    "changeAmountProportion": 42.0,
    "children": [
      {}
    ],
    "hasWarnings": true,
    "id": 42,
    "lastYearMargin": 42.0,
    "lastYearTotal": 42.0,
    "margin": 42.0,
    "parentId": 42,
    "position": 42,
    "sign": "ASSETS",
    "templateLineName": {
      "de": "string",
      "en": "string",
      "fr": "string",
      "id": 42,
      "it": "string"
    },
    "total": 42.0,
    "type": "NONE"
  }
]