Skip to content

GetAccountsByCustomerId

Returns trading accounts linked to customer_id.

Endpoint

GET /accounts/customer

Request Parameters

Name Type Required Description
customer_id int Yes Customer id linked through Users.customer_id
groupFilter string No Account group mask, default *
limit int No Maximum rows, default 50000
offset int No Pagination offset, default 0

Request Example

{
  "command": "GetAccountsByCustomerId",
  "extID": "1",
  "data": {
    "customer_id": 1,
    "limit": 100,
    "offset": 0
  }
}

Response Data

Response uses the same table format as account list methods: structure, rows, count, and total fields.

{
  "structure": ["login", "enable", "enable_read_only", "enable_change_password", "leverage", "currency", "group", "email", "country", "phone", "comment", "address", "city", "zipcode", "name", "regdate", "prevbalance", "prevmonthbalance", "balance", "credit", "margin", "margin_free", "margin_level", "equity", "profit", "net_profit", "storage", "commission", "online", "magic", "customer_id"],
  "rows": [],
  "count": 0
}