Get earnings by customer
Get estimated earnings for a completion period, one row per customer_reference, optionally split by day, week or month. totals covers every page and matches the earnings in /api/deriv/statistics for the same period. Use it to reconcile data synced from /api/deriv/statistics/earnings.
Get estimated earnings for a completion period, one row per customer_reference, optionally split by day, week or month. totals covers every page and matches the earnings in /api/deriv/statistics for the same period. Use it to reconcile data synced from /api/deriv/statistics/earnings.
Required API key scope: transactions:read.
Request example
GET /api/deriv/statistics/earnings/customers?from=2026-10-12&to=2026-10-12&timezone=UTC&granularity=day&cursor=eyJ2IjoxLCJwIjoiOWYyYzRlMWE3YjNkNWM2MCIsImsiOiJsZWRnZXIiLCJ0IjoiMjAyNi0xMC0xMlQwOTowMDowMFoiLCJpIjoiNTA3ZjFmNzdiY2Y4NmNkNzk5NDM5MDExIn0&limit=500 HTTP/1.1Host: api.edgepro.siteX-API-Key: <your-api-key>X-Deripay-API-Version: 2Accept: application/jsonpartnerAPIKeyX-API-Key<token>from?stringInclusive completion date. Window cannot exceed 366 days.
to?stringInclusive when supplied as a calendar date; exclusive when supplied as an RFC3339 timestamp.
timezone?stringIANA timezone; defaults to Africa/Nairobi.
granularity?stringSplit each customer into periods. Omit for one row per customer.
"day""week""month"cursor?stringnext_cursor from the previous page. It keeps the period and granularity, so other filters can be omitted; if sent, they must match.
limit?integerRows per page, 1 to 500. Defaults to 100.
X-API-Key*stringYour API key. Send requests from your server.
X-Deripay-API-Version*stringSelects the response and error format documented here. Without it, the same URL returns the original format.
Accept?stringSuccessful request.
application/json- response
success*booleanmessage*stringdata*curl -X GET 'https://api.edgepro.site/api/deriv/statistics/earnings/customers?from=2026-10-12&to=2026-10-12&timezone=UTC&granularity=day&cursor=eyJ2IjoxLCJwIjoiOWYyYzRlMWE3YjNkNWM2MCIsImsiOiJsZWRnZXIiLCJ0IjoiMjAyNi0xMC0xMlQwOTowMDowMFoiLCJpIjoiNTA3ZjFmNzdiY2Y4NmNkNzk5NDM5MDExIn0&limit=500' \ -H 'X-API-Key: <your-api-key>' \ -H 'X-Deripay-API-Version: 2' \ -H 'Accept: application/json'{ "success": true, "message": "Earnings retrieved successfully", "data": { "as_of": "2026-10-12T09:05:00Z", "from": "2026-10-12T00:00:00Z", "to": "2026-10-13T00:00:00Z", "timezone": "UTC", "granularity": "day", "partial_period": true, "totals": { "currency": "USD", "basis": "estimated_gross_fx_spread_by_completion", "partner_share_bps": 4800, "deripay_share_bps": 5200, "gross_earnings": "0.20", "partner_earnings": "0.10", "deripay_earnings": "0.10", "included_transactions": 1, "excluded_transactions": 0 }, "customers": [ { "customer_reference": "customer-1001", "period": "2026-10-12", "first_completed_at": "2026-10-12T09:00:00Z", "last_completed_at": "2026-10-12T09:00:00Z", "currency": "USD", "basis": "estimated_gross_fx_spread_by_completion", "partner_share_bps": 4800, "deripay_share_bps": 5200, "gross_earnings": "0.20", "partner_earnings": "0.10", "deripay_earnings": "0.10", "included_transactions": 1, "excluded_transactions": 0 } ], "has_more": false, "next_cursor": null }}