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.
Authorization
appToken readApp 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
Identifier of the partner user whose clients are reported
uuidStart of the reporting window (inclusive); omit for no lower bound
date-timeEnd 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
date-timeWhen 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
falseRanking metric (current window)
"net"Value in
- "deposits"
- "withdrawals"
- "net"
Ranking direction
"desc"Value in
- "asc"
- "desc"
Restrict the report to one b2core client id
Maximum number of clients to return; 0 returns only the aggregation and the total
0 <= value <= 10050Number of ranked clients to skip
0 <= value0Header Parameters
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 }}