List accounts
GET/v1/accounts
Returns your firm's active accounts, in order of name. Send includeInactive=true to include inactive accounts, and id to return only the accounts with those IDs. Send balances=true to add each account's current holdings, balance, cash, cash weight and risk allocation; riskAllocation.target is always {} here, and Get an account returns it. Send q to return only the accounts that match a query, and sort to order them; totalCount counts only the accounts that match.
q takes an RQL query: one or more conditions of the form field operator value, joined by and or or, with parentheses to group them. and applies before or. The operators are =, !=, >, >=, < and <. A value is a whole number, such as 50000, or a text in single or double quotes, such as 'Rivera'; put a backslash before a quote inside a text. On a text field, = matches a field that contains the text, in any case, and != one that does not. A true-or-false field takes 'true' or 'false', in quotes, with = or != only. Example: householdName = 'Rivera' and accountBalance > 50000.
sort takes one field, as field, field:asc or field:desc. An account with no value for the field comes last in either order.
A query or sort on a field that needs balances=true gets status 400 without it. The fields of q and sort:
name, text: the name of the account, asdisplayNamegives it.displayName, text: the same name asname.householdName, text: the name of the account's household.model, text: the name of the model assigned to the account. The model of its household does not count.type, text: the account type, such asIRA.isActive, true or false:'true'for an active account.accountBalance, number, needsbalances=true: the current total value of the account, in US dollars.cashBalance, number, needsbalances=true: the current cash value of the account, in US dollars.cashBalanceWeight, number, needsbalances=true: the cash value as a percent of the total value, from 0 to 100.riskAllocation, number, needsbalances=true: the percent of the account's current allocation that is to the risk level namedgrowth, from 0 to 100. The risk level's name must begrowthexactly: where your firm's risk level is namedGrowth, no account has a value for this field, so a condition on it matches no account and a sort on it keeps the order of name.inceptionDate, forsortonly: the date the account was opened.
Request
Responses
- 200
- 400
- 401
- 403
- 429
A page of accounts.
limit or offset is not a whole number, or limit is less than 1, balances or includeInactive is not true or false, an id is not a whole number, q or sort is not valid, or q or sort names accountBalance, cashBalance, cashBalanceWeight or riskAllocation without balances=true.
The access token is missing, invalid, or expired.
The access token does not have the read:household scope.
Too many requests. Wait the number of seconds in the Retry-After-per-person header (script-audience tokens) or the Retry-After header (other requests) before you retry. See Rate limit.