Get treasury widget
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
GET /api-v1/treasury
curl \
-X GET http://10.10.10.132/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"
}
}