# Treasury reports events

Treasury reports events. `TREASURY_REPORT.CREATED` is emitted when a treasury settlement report has been generated. `TREASURY_REPORT.CONFIRMED` is emitted once the treasury operation covered by the report has been completed. It carries the same report payload as the corresponding `TREASURY_REPORT.CREATED` event except `object.scope`, and can be correlated with it via the `object.id` and `object.filename` fields. When branches are configured for the tenant, a separate treasury settlement report is generated per branch and each report emits its own set of events.

Endpoint: POST Treasury reports events
Version: 1.172.0

## Request fields (application/json):

  - `id` (string, required)
    Event unique identifier

  - `created_at` (string, required)
    Date and time when the event was created. [RFC 3339-5](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), [ISO8601 UTC](https://www.iso.org/iso-8601-date-and-time-format.html)

  - `type` (string, required)
    Event type
    Enum: "TREASURY_REPORT.CREATED", "TREASURY_REPORT.CONFIRMED"

  - `object` (object, required)

  - `object.id` (string, required)

  - `object.type` (string, required)
    Treasury operation type.
* TRADING -
* CORPORATE_ACTION -
* FEE -
* TAX -
* TAX_ADJUSTMENT_RECEIVABLE -
* TAX_ADJUSTMENT_PAYABLE -
* TRANSACTION_FEE -
    Enum: "TRADING", "CORPORATE_ACTION", "FEE", "TAX", "TAX_ADJUSTMENT_RECEIVABLE", "TAX_ADJUSTMENT_PAYABLE", "TRANSACTION_FEE"

  - `object.currency` (string, required)
    The currency of the treasury payment. Alphabetic three-letter [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.

  - `object.settlement_amount` (string, required)
    A positive cash amount, as a decimal string with up to two decimal places.

  - `object.report_date` (string, required)
    The date when the treasury report was created.

  - `object.direction` (string, required)
    Direction of the treasury operation.
* INCOMING -
* OUTGOING -
* NA -
    Enum: "INCOMING", "OUTGOING", "NA"

  - `object.filename` (string, required)
    The report name. When branches are configured for the tenant, treasury reports are generated separately per branch and the report name carries the branch name as a suffix, e.g. `buy_trading_08052023_<branch_name>.csv`. Activity of users without an assigned branch is delivered in the standard report without a branch suffix.

  - `object.scope` (object)
    The subset of transactions that the treasury report covers.

  - `object.scope.transaction_date_from` (string)
    The first transaction date (inclusive) of the transactions covered by the report.

  - `object.scope.transaction_date_to` (string)
    The last transaction date (inclusive) of the transactions covered by the report.

  - `object.scope.account_group_types` (array)
    The account group types that the report covers. Only present when we generate separate reports per account group type for the client, for example one report for pension account groups and one for all others.

  - `webhook_id` (string, required)
    Webhook unique identifier.

## Request examples:

  - `Report created` (unknown)

  - `Report confirmed` (unknown)

## Response 200:

  - `200` (unknown)
    Request has been processed successfully.

