B2COPY投資プラットフォームで作成されたマスターアカウントと投資アカウントのリストを返します。アカウント、クライアントの電子メール、またはタイプでフィルターし、結果をページ単位で表示します。
終点
GET [host]/api/v2/b2copy/accounts認証
Authorization: Bearer <access_token> ヘッダーでアクセス トークンを送信します。Authorization in the Back Office を参照してください。
リクエストボディ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| investmentPlatformId | integer | Yes | The investment platform instance. Use 1 for a single connected MT server; contact Support if you have several. |
| account_number | string | No | MT login of a specific master or investment account. |
| string | No | Client email — returns accounts of that client. | |
| is_master | boolean | No | true → only master accounts; false → only investment accounts. |
| limit | integer | No | Maximum number of items returned. |
| offset | integer | No | Skip the first N items. |
| sort_by | string | No | Sort field. Supported: created_at. |
| sort_order | string | No | Sort direction: asc or desc. |
curl --location --request GET 'https://host.name/api/v2/b2copy/accounts' \
--header 'Authorization: Bearer <access_token>' \
--data-raw '{
"investment_platform_id": 1,
"account_number": "2121944013",
"email": "[email protected]",
"is_master": true,
"limit": 100,
"offset": 0,
"sort_by": "created_at",
"sort_order": "asc"
}'応答
一致するアカウントを記述するオブジェクトの配列。
{
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]",
"account_id": "2121944013",
"group": "demo_standalone",
"account_type": "master",
"createdAt": "2024-02-09T10:32:47.000000Z"
}