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 <= value0Response Body
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 }}{ "message": "string", "code": "string", "errors": { "property1": [ "string" ], "property2": [ "string" ] }, "details": [ { "field": "string", "issue": "string" } ]}{ "message": "string", "code": "string", "errors": { "property1": [ "string" ], "property2": [ "string" ] }, "details": [ { "field": "string", "issue": "string" } ]}{ "message": "string", "code": "string", "errors": { "property1": [ "string" ], "property2": [ "string" ] }, "details": [ { "field": "string", "issue": "string" } ]}{ "message": "string", "code": "string", "errors": { "property1": [ "string" ], "property2": [ "string" ] }, "details": [ { "field": "string", "issue": "string" } ]}