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
    • lines array[object]
      Hide lines attributes Show lines attributes object
      • chartOfAccount object
        Hide chartOfAccount attributes Show chartOfAccount attributes object
        • id integer
        • organizationId integer
        • accountNumber integer
        • name object
          Hide name attributes Show name attributes object
          • en string
          • fr string
          • de string
          • it string
        • endDate string(date-time)
        • currency string
        • currencyId integer
        • type string
        • departmentId integer
        • warnings string
        • isCashAccountEnabled boolean
        • isActive boolean
        • hasDepreciation boolean
        • isPurchaseInvoicesEnabled boolean
      • currency string
      • amount number
      • lastEntryDate string(date-time)
      • chartOfAccountsName object
        Hide chartOfAccountsName attributes Show chartOfAccountsName attributes object
        • en string
        • fr string
        • de string
        • it string
    • totalLine object
      Hide totalLine attributes Show totalLine attributes object
      • chartOfAccount object
        Hide chartOfAccount attributes Show chartOfAccount attributes object
        • id integer
        • organizationId integer
        • accountNumber integer
        • name object
          Hide name attributes Show name attributes object
          • en string
          • fr string
          • de string
          • it string
        • endDate string(date-time)
        • currency string
        • currencyId integer
        • type string
        • departmentId integer
        • warnings string
        • isCashAccountEnabled boolean
        • isActive boolean
        • hasDepreciation boolean
        • isPurchaseInvoicesEnabled boolean
      • currency string
      • amount number
      • lastEntryDate string(date-time)
      • chartOfAccountsName object
        Hide chartOfAccountsName attributes Show chartOfAccountsName attributes object
        • en string
        • fr string
        • de string
        • it string
    • startDate string(date-time)
    • endDate 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 "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42"
Response examples (200)
{
  "lines": [
    {
      "chartOfAccount": {
        "id": 42,
        "organizationId": 42,
        "accountNumber": 42,
        "name": {
          "en": "string",
          "fr": "string",
          "de": "string",
          "it": "string"
        },
        "endDate": "2026-05-04T09:42:00Z",
        "currency": "string",
        "currencyId": 42,
        "type": "string",
        "departmentId": 42,
        "warnings": "string",
        "isCashAccountEnabled": true,
        "isActive": true,
        "hasDepreciation": true,
        "isPurchaseInvoicesEnabled": true
      },
      "currency": "string",
      "amount": 42.0,
      "lastEntryDate": "2026-05-04T09:42:00Z",
      "chartOfAccountsName": {
        "en": "string",
        "fr": "string",
        "de": "string",
        "it": "string"
      }
    }
  ],
  "totalLine": {
    "chartOfAccount": {
      "id": 42,
      "organizationId": 42,
      "accountNumber": 42,
      "name": {
        "en": "string",
        "fr": "string",
        "de": "string",
        "it": "string"
      },
      "endDate": "2026-05-04T09:42:00Z",
      "currency": "string",
      "currencyId": 42,
      "type": "string",
      "departmentId": 42,
      "warnings": "string",
      "isCashAccountEnabled": true,
      "isActive": true,
      "hasDepreciation": true,
      "isPurchaseInvoicesEnabled": true
    },
    "currency": "string",
    "amount": 42.0,
    "lastEntryDate": "2026-05-04T09:42:00Z",
    "chartOfAccountsName": {
      "en": "string",
      "fr": "string",
      "de": "string",
      "it": "string"
    }
  },
  "startDate": "2026-05-04T09:42:00Z",
  "endDate": "2026-05-04T09:42:00Z"
}