---
title: "Aggregates transactions by date (business day) for all accounts and a given period."
method: POST
path: "/finance/v1/accounts/aggregate-daily"
tags: ["SubLedger"]
---

# Aggregates transactions by date (business day) for all accounts and a given period.

`POST /finance/v1/accounts/aggregate-daily`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/finance/v1/accounts/aggregate-daily`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `subledger.read`, `accounting.read`, `admin`

Returns credited and debited amounts aggregated by transactions' date (business day) for all accounts and a given period.
Stores an entry in the export audit log.<br>You must have at least one of these scopes: 'subledger.read, accounting.read'.<br>For fine-grained clients, you must have this permission: 'core.subledger_aggregate.create'.

## Query parameters

- `propertyId` string, required
- `from` string, date, required
- `to` string, date, required
- `reference` string
- `accountNumber` string
- `accountType` 'Revenues' | 'Payments' | 'Liabilities' | 'Receivables' | 'Vat' | 'House' | 'AccountsReceivable' | 'CityTaxes' | 'TransitoryItems' | 'VatOnLiabilities' | 'LossOfAccountsReceivable' | 'SecondCityTax' | 'GuestLevies'
- `accountingSchema` 'Simple' | 'Extended'
- `languageCode` string

## Headers

- `Idempotency-Key` string

## Response `200`

Success.

- AggregateTransactionListModel
  - `aggregations` AggregateTransactionItemModel[], required: Aggregated data for the main accounts.
    - `account` ExportAccountModel, required
      - `name` string, required: The account name
      - `number` string, required: The account number
      - `parentNumber` string, nullable: The number of the parent account
      - `type` 'Revenues' | 'Payments' | 'Liabilities' | 'Receivables' | 'Vat' | 'House' | 'AccountsReceivable' | 'CityTaxes' | 'TransitoryItems' | 'VatOnLiabilities' | 'LossOfAccountsReceivable' | 'SecondCityTax' | 'GuestLevies', required: The account type
    - `creditedAmount` PreciseMonetaryValueModel, required: Use this model in all accounting reports
      - `amount` number, double, required
      - `currency` string, required
    - `debitedAmount` PreciseMonetaryValueModel, required: Use this model in all accounting reports
      - `amount` number, double, required
      - `currency` string, required
    - `balance` PreciseMonetaryValueModel, required: Use this model in all accounting reports
      - `amount` number, double, required
      - `currency` string, required
  - `total` AggregatesTotalModel, required
    - `creditedAmount` PreciseMonetaryValueModel, required: Use this model in all accounting reports
      - `amount` number, double, required
      - `currency` string, required
    - `debitedAmount` PreciseMonetaryValueModel, required: Use this model in all accounting reports
      - `amount` number, double, required
      - `currency` string, required
    - `balance` PreciseMonetaryValueModel, required: Use this model in all accounting reports
      - `amount` number, double, required
      - `currency` string, required

## Other responses

- `204`: No transactions found.
- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-finance-api.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-finance-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-finance-api/revisions/6f1d524c1ea7?raw)
