List all subaccounts

Request

GET https://api.46elks.com/a1/subaccounts

Optional request parameters

Parameter Example Description
start 2018-02-14T09:52:07.302000 Retrieve subaccounts created before this date
end 2018-02-14T09:52:07.302000 Retrieve subaccounts created after this date.
limit 40 Limit the number of results on each page
active yes Only fetch active subaccounts

Response structure

Example JSON response
{
  "data": [
    {
      "balanceused": 35000,
      "secret": "E358D00000000000000091594CAB0E97",
      "created": "2018-02-05T15:06:36.113000",
      "id": "af068677d00000000000000055adecf62",
      "name": "Example_Subaccount"
    },
    {
      "active": "no",
      "balanceused": 35000,
      "created": "2018-02-05T15:06:38.113000",
      "deactivated": "2018-02-05T15:06:38.113000",
      "id": "af068677d0000000000000005aflfgcf62",
      "name": "Example_Subaccount_2"
    }
  ],
  "next": "2018-02-05T15:06:33.318000"
}
Parameter Type Description
data list List of subaccounts with the same format as in get subaccount by ID.
next string Timestamp to the next page if more subaccounts are available.

Additional info

At most 100 subaccounts can be retrieved at once. Use the start and end parameters to page through the history.