# 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 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.144.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)

  - `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.

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

