HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Get All Accounts

Query all your organization's accounts or ones that match criteria supplied in the available query parameters.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Retrieve accounts for your organization, optionally filtered by search criteria.

Use this endpoint to list accounts, build account search experiences, or find accounts before retrieving related profiles, tariffs, properties, rates, calculations, or analyses. To retrieve a known account directly, use Get One Account with accountId or Get One Account with providerAccountId.

Resource URI

GET /rest/v1/accounts

Query parameters

ParameterTypeDescription
searchStringText to search for. Can be a regular expression when isRegex=true. Optional.
searchOnStringAccount fields to search. If search is specified without searchOn, defaults to accountName and customerOrgName. Optional.
startsWithBooleanWhen true, returns results that begin with the search string. Defaults to false. Optional.
endsWithBooleanWhen true, returns results that end with the search string. Defaults to false. Optional.
isRegexBooleanWhen true, treats search as a regular expression. Defaults to false. Optional.
pageStartIntegerIndex of the first result to return. Defaults to 0. Optional.
pageCountIntegerNumber of results to return. Defaults to 25. Optional.
sortOnStringComma-separated list of fields to sort on. Optional.
sortOrderStringComma-separated sort order values, such as ASC or DESC. Defaults to ASC. Optional.
fieldsStringPass ext to include extended fields in the response. Optional.

For the full account data model, account workflow, and detailed examples, see Accounts API.

Example

GET /rest/v1/accounts?search=Peets&pageStart=0&pageCount=25

A successful response returns a standard response payload with type set to Account and results containing matching accounts.

{
  "status": "success",
  "count": 1,
  "type": "Account",
  "results": [
    {
      "accountId": "jke34kjlsd998er",
      "providerAccountId": null,
      "accountName": "Peets Briarwood Mall",
      "status": "ACTIVE"
    }
  ]
}
Query Params
string

This is from the standard searching and sorting parameters. You can search within one or more of the attributes within the Account object. When search is specified but searchOn is not specified, the default fields searched on are accountName and customerOrgName.

int32

The index of the first result. If not specified, this is zero. (Optional)

int32

The number of results to return. If not specified, this will return 25 results. (Optional)

string

The string of text to search on. This can also be a regular expression, in which case you should set the isRegex flag to true (see below). (Optional)

boolean

When true, the search will only return results that begin with the specified search string. Otherwise, any match of the search string will be returned as a result. The default is false. (Optional)

boolean

When true, the search will only return results that end with the specified search string. Otherwise, any match of the search string will be returned as a result. The default is false. (Optional)

boolean

When true, the provided search string will be regarded as a regular expression and the search will return results matching the regular expression. The default is false. (Optional)

string

Comma-separated list of fields to sort on. This can also be input via Array Inputs (see above). (Optional)

string

Comma-separated list of ordering. Possible values are ASC and DESC. Default is ASC. If your sortOn contains multiple fields and you would like to order fields individually, you can pass in a comma-separated list here (or use Array Inputs, see above). For example, if your sortOn contained 5 fields, and your sortOrder contained ASC,DESC,DESC, these would be applied to the first three items in the sortOn field. The remaining two would default to ASC. (Optional)

string

Pass in ext to obtain maximum fields in response

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json