Skip to Content
Partner

Get Dashboard Top Clients

The partner's direct referrals (clients and sub-IBs) ranked by `sortBy` over the window. A sub-IB's row includes its whole downline: the rebate the partner earned through it, its USD volume and the net deposits of its clients. Only referrals with a non-zero `sortBy` value in the window are listed, by that value descending. The rows are the partner's current direct referrals: rebate from trades of a client who has since moved to another partner counts in `GET /partner/dashboard/performance` but in no row, so the rows need not add up to the window's rebate.

GET
/partner/dashboard/top-clients

Authorization

AuthorizationBearer <token>

App access token issued by POST /tokens (client credentials). Full-access Apps hold the read and write scopes, read-only Apps hold read only. Send it as Authorization: Bearer <token>.

In: header

Scope: read

Query Parameters

userId*string

Identifier of the partner user (the IB record) whose dashboard is requested

Formatuuid
startTime*string

Start of the window (inclusive), RFC 3339 with an offset. Encode + as %2B: a raw + in a query string reads as a space. Any window length is accepted; long windows take longer.

Formatdate-time
endTime*string

End of the window (exclusive), RFC 3339 with an offset; must be after startTime. Operations at exactly this time are not counted; to include a whole day, pass the next day's 00:00.

Formatdate-time
sortBy?string

Ranking metric

Default"rebate"

Value in

  • "rebate"
  • "volumeUsd"
  • "netDeposits"
limit?integer

Maximum number of ranked rows to return

Range1 <= value <= 100
Default50
comparative?boolean

When true, every metric also carries its change versus the previous equal-length window [startTime − (endTime − startTime), startTime). When false, absoluteChange and relativeChange are null.

Defaultfalse

Header Parameters

X-B2Core-Ownership?"enforce"

Set by the B2Core client-area proxy (/api/ib/v3/users/{userId}/* on B2Core) after its own owner check. IB then checks the owner too: the request must carry the back-office token and name a client in X-B2Core-User-Type / X-B2Core-User-Id, and the operation must be open to the proxy, otherwise 403. Every IB user the request names (userId, filter[userId], filter[parentUserId], filter[paymentUserId], filter[ownerId], filter[ownerUserId], filter[parentUserIdBySubIbs], path {userId}) must belong to that client, otherwise 404; reference lists that take no user skip this check. Without the header the request is not checked.

Value in

  • "enforce"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/partner/dashboard/top-clients?userId=497f6eca-6276-4993-bfeb-53cbbbba6f08&startTime=2019-08-24T14%3A15%3A22Z&endTime=2019-08-24T14%3A15%3A22Z"
{  "report": {    "isMasked": true,    "data": [      {        "clientExternalId": "string",        "name": "string",        "isSubIb": true,        "rebate": {          "currency": "string",          "actualValue": "string",          "absoluteChange": "string",          "relativeChange": "string"        },        "volumeUsd": {          "currency": "string",          "actualValue": "string"        },        "netDeposits": {          "currency": "string",          "actualValue": "string",          "absoluteChange": "string",          "relativeChange": "string"        }      }    ]  }}