Get treasury widget

GET /api-v1/treasury

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
    • endDate string(date-time)
    • lines array[object]
      Hide lines attributes Show lines attributes object
      • amount number
      • chartOfAccount object
        Hide chartOfAccount attributes Show chartOfAccount attributes object
        • accountNumber integer
        • currency string
        • currencyId integer
        • departmentId integer
        • endDate string(date-time)
        • hasDepreciation boolean
        • id integer
        • isActive boolean
        • isCashAccountEnabled boolean
        • isPurchaseInvoicesEnabled boolean
        • name object
          Hide name attributes Show name attributes object
          • de string
          • en string
          • fr string
          • it string
        • organizationId integer
        • type string
        • warnings string
      • chartOfAccountsName object
        Hide chartOfAccountsName attributes Show chartOfAccountsName attributes object
        • de string
        • en string
        • fr string
        • it string
      • currency string
      • lastEntryDate string(date-time)
    • startDate string(date-time)
    • totalLine object
      Hide totalLine attributes Show totalLine attributes object
      • amount number
      • chartOfAccount object
        Hide chartOfAccount attributes Show chartOfAccount attributes object
        • accountNumber integer
        • currency string
        • currencyId integer
        • departmentId integer
        • endDate string(date-time)
        • hasDepreciation boolean
        • id integer
        • isActive boolean
        • isCashAccountEnabled boolean
        • isPurchaseInvoicesEnabled boolean
        • name object
          Hide name attributes Show name attributes object
          • de string
          • en string
          • fr string
          • it string
        • organizationId integer
        • type string
        • warnings string
      • chartOfAccountsName object
        Hide chartOfAccountsName attributes Show chartOfAccountsName attributes object
        • de string
        • en string
        • fr string
        • it string
      • currency string
      • lastEntryDate string(date-time)
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/treasury
curl \
 --request GET 'https://wyzio.app/api-v1/treasury' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
{
  "endDate": "2025-05-04T09:42:00Z",
  "lines": [
    {
      "amount": 42.0,
      "chartOfAccount": {
        "accountNumber": 42,
        "currency": "string",
        "currencyId": 42,
        "departmentId": 42,
        "endDate": "2025-05-04T09:42:00Z",
        "hasDepreciation": true,
        "id": 42,
        "isActive": true,
        "isCashAccountEnabled": true,
        "isPurchaseInvoicesEnabled": true,
        "name": {
          "de": "string",
          "en": "string",
          "fr": "string",
          "it": "string"
        },
        "organizationId": 42,
        "type": "string",
        "warnings": "string"
      },
      "chartOfAccountsName": {
        "de": "string",
        "en": "string",
        "fr": "string",
        "it": "string"
      },
      "currency": "string",
      "lastEntryDate": "2025-05-04T09:42:00Z"
    }
  ],
  "startDate": "2025-05-04T09:42:00Z",
  "totalLine": {
    "amount": 42.0,
    "chartOfAccount": {
      "accountNumber": 42,
      "currency": "string",
      "currencyId": 42,
      "departmentId": 42,
      "endDate": "2025-05-04T09:42:00Z",
      "hasDepreciation": true,
      "id": 42,
      "isActive": true,
      "isCashAccountEnabled": true,
      "isPurchaseInvoicesEnabled": true,
      "name": {
        "de": "string",
        "en": "string",
        "fr": "string",
        "it": "string"
      },
      "organizationId": 42,
      "type": "string",
      "warnings": "string"
    },
    "chartOfAccountsName": {
      "de": "string",
      "en": "string",
      "fr": "string",
      "it": "string"
    },
    "currency": "string",
    "lastEntryDate": "2025-05-04T09:42:00Z"
  }
}