Skip to Content
Partner

Get Client NET Deposits

Deposits and withdrawals are client-centric: they cover all operations of the clients currently in the partner's structure, including those made before a client joined it. When a client is moved to another IB, its figures move with it; an IB above both the old and the new IB keeps them.

GET
/partner/client-net-deposits

Authorization

appToken read
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 whose clients are reported

Formatuuid
startTime?string

Start of the reporting window (inclusive); omit for no lower bound

Formatdate-time
endTime?string

End of the reporting window (exclusive): operations at exactly this time are not counted; to include a whole day, pass the next day's 00:00. Omit for no upper bound

Formatdate-time
comparative?boolean

When true and both startTime and endTime are set, include the absolute change versus the previous equal-length window; clients active only in the previous window are listed too

Defaultfalse
sortBy?string

Ranking metric (current window)

Default"net"

Value in

  • "deposits"
  • "withdrawals"
  • "net"
sortOrder?string

Ranking direction

Default"desc"

Value in

  • "asc"
  • "desc"
clientExternalId?integer

Restrict the report to one b2core client id

limit?integer

Maximum number of clients to return; 0 returns only the aggregation and the total

Range0 <= value <= 100
Default50
offset?integer

Number of ranked clients to skip

Range0 <= value
Default0

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

curl -X GET "https://example.com/partner/client-net-deposits?userId=497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "report": {    "aggregation": {      "deposits": {        "actualValue": "string",        "absoluteChange": "string",        "currency": "string"      },      "withdrawals": {        "actualValue": "string",        "absoluteChange": "string",        "currency": "string"      },      "net": {        "actualValue": "string",        "absoluteChange": "string",        "currency": "string"      }    },    "data": [      {        "clientExternalId": "string",        "deposits": {          "actualValue": "string",          "absoluteChange": "string"        },        "withdrawals": {          "actualValue": "string",          "absoluteChange": "string"        },        "net": {          "actualValue": "string",          "absoluteChange": "string"        }      }    ],    "total": 0  }}