Get treasury widget

GET /api-v1/treasury

Headers

Responses

GET /api-v1/treasury
curl \
 -X GET http://wyzio.app/api-v1/treasury \
 -H "TARGET-ORGANIZATION-ID: 42" \
 -H "WEAL-TOKEN: string"
Response examples (200)
{
  "endDate": "2024-05-04T09:42:00+00:00",
  "lines": [
    {
      "amount": 42.0,
      "chartOfAccount": {
        "accountNumber": 42,
        "currency": "string",
        "currencyId": 42,
        "departmentId": 42,
        "endDate": "2024-05-04T09:42:00+00:00",
        "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": "2024-05-04T09:42:00+00:00"
    }
  ],
  "startDate": "2024-05-04T09:42:00+00:00",
  "totalLine": {
    "amount": 42.0,
    "chartOfAccount": {
      "accountNumber": 42,
      "currency": "string",
      "currencyId": 42,
      "departmentId": 42,
      "endDate": "2024-05-04T09:42:00+00:00",
      "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": "2024-05-04T09:42:00+00:00"
  }
}