One publisher's balance month by month, newest first — what its page shows under Payments: startBalance (the previous month's to be paid), accrued (what it earned), paid (the payouts) and endBalance (still to be paid).
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/network/management/get-publisher-balance-history.do
One publisher's balance month by month, newest first — what its page shows under Payments: startBalance (the previous month's to be paid), accrued (what it earned), paid (the payouts) and endBalance (still to be paid). 'current' is the newest month, or null. Requires inventory view and SHOW_PUBLISHERS_BALANCE, or the NETWORK_BILLING_MANAGEMENT (enabled or read-only) and PUBLISHERS_PAYMENTS permissions; the publisher must be visible to the caller.
Query Params
idintegerrequired
Publisher (site) ID
10
Responses
200
{success, data:[{year, month, startBalance, accrued, paid, endBalance}], current, startMonth: yyyy-MM|null — the month the balances start from; earlier months are left out}
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/network/management/get-publisher-balance-history.do?id=10");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());