Get a list of master and investment accounts
Use the method described below to get a list of master and investment accounts created on the B2COPY investment platform.
GET
[host]/api/v2/b2copy/accounts
Request
Headers
Authorization: Bearer <access_token>
To get the access token, use the method to authorize in the Back Office.
Body
In the request body, specify the following parameters:
Name | Type | Required | Description |
---|---|---|---|
| ineger | Yes | The identifier of the investment platform instance.
|
| string | No | Specify the MT login (number) of a master or investment account to get data about a specific account. |
| string | No | Specify the client email address to get data about accounts of a specific client. |
| boolean | No | If true, only master accounts are returned. If false, only investment accounts are returned. |
| ineger | No | Specify this parameter to define the maximum number of items that may be returned in a response. |
| ineger | No | Specify this parameter to exclude from a response the first N items of a resource collection. |
| string | No | Sorts the items in the response by a specified parameter. Possible value: - created_at – the date and time when a master or investment account was created. |
| string | No | Sorts the items in the response in a specified order. Possible values: - asc – the ascending order - desc – the descending order |
Request example
Response
The response includes an array of objects providing information about master and investment accounts matching the request parameters.
Response example
Last updated
Was this helpful?