Skip to main content
POST

Body

application/json

Request to flatten account(s)

account_ids
string<uuid>[] | null

Optional: List of account UUIDs to flatten. If omitted, flattens ALL accounts. Can be a single account or multiple accounts.

Example:
reason
string | null
write-only

Internal: overrides the audit reason stamped on the flatten orders. Set by engine-initiated flattens (e.g. account lockout) that ride the same command path; clients should omit it.

symbols
string[] | null

Optional: List of contract symbols to flatten. If omitted, flattens ALL symbols. Examples: ["ESH6"], ["ESH6", "NQH6"], or omit for all symbols.

Example:

Response

Flatten command accepted

accepted
boolean
required
command_id
string<uuid>
required
command_type
string
required
status
string
required