# Account events

Account events

Endpoint: POST Account events
Version: 1.111.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: "ACCOUNT.CREATED", "ACCOUNT.ACTIVATED", "ACCOUNT.CLOSING_INITIATED", "ACCOUNT.CLOSED", "ACCOUNT.LOCKED", "ACCOUNT.UPDATED"

  - `object` (any, required) — one of:
    - Account:
      - `id` (string, required)
        Account unique identifier.
      - `created_at` (string, required)
        Date and time when the resource 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)
      - `updated_at` (string, required)
        Date and time when the resource was last updated. [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)
      - `account_group_id` (string, required)
        Account group unique identifier.
      - `type` (string, required)
        Account type.
* TRADING - Orders in accounts of this type are created on a specific instrument basis.
* PORTFOLIO - Orders in accounts of this type are created on a portfolio basis and additional portfolio functionality is available.
        Enum: "TRADING", "PORTFOLIO"
      - `users` (array, required)
      - `users.id` (string)
        User unique identifier.
      - `users.type` (string)
        Relation type
* OWNER - Account Group Owner
* CHILD - Child Account Group Owner
* GUARDIAN - Child Account Group Guardian
        Enum: "OWNER", "GUARDIAN", "CHILD"
      - `name` (string, required)
        The name of the account.
      - `status` (string, required)
        The status of the account
* PENDING_APPROVAL - Account approval is pending - the account is visible through our API but cannot be acted on.
* ACTIVE - Account is active - full functionality of the Investment API is accessible.
* CLOSING - Account is closing - only sell orders or the transfer of positions out are permissible before the account is closed.
* CLOSED - Account is closed with zero balance successfully.
* LOCKED - Account is locked for all actions.
        Enum: "PENDING_APPROVAL", "ACTIVE", "CLOSING", "CLOSED", "LOCKED"
      - `account_number` (integer, required)
        The serial account number of the account in the account group.
    - Business Account:
      - `id` (string, required)
        Account unique identifier.
      - `created_at` (string, required)
        Date and time when the resource 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)
      - `updated_at` (string, required)
        Date and time when the resource was last updated. [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)
      - `account_group_id` (string, required)
        Account group unique identifier.
      - `type` (string, required)
        Account type.
* TRADING - Orders in accounts of this type are created on a specific instrument basis.
* PORTFOLIO - Orders in accounts of this type are created on a portfolio basis and additional portfolio functionality is available.
        Enum: same as `type` in "Account" (2 values)
      - `business_id` (string, required)
        Unique identifier for the business.
      - `name` (string, required)
        The name of the account.
      - `status` (string, required)
        The status of the account
* PENDING_APPROVAL - Account approval is pending - the account is visible through our API but cannot be acted on.
* ACTIVE - Account is active - full functionality of the Investment API is accessible.
* CLOSING - Account is closing - only sell orders or the transfer of positions out are permissible before the account is closed.
* CLOSED - Account is closed with zero balance successfully.
* LOCKED - Account is locked for all actions.
        Enum: same as `status` in "Account" (5 values)
      - `account_number` (integer, required)
        The serial account number of the account in the account group.

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


## Response 200 fields
