Skip to main content
POST
Deactivate a trading account

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Path Parameters

accountId
string<uuid>
required

Trading account ID

Body

application/json
reason
string

Reason for deactivating (shown in webhooks and audit log)

Example:

"Inactive for 14 days before month end"

Response

Account deactivated (or already inactive)

changed
boolean

true if the status changed, false if already inactive

status
string

New account status

Example:

"inactive"