Browse the help center

Network Finances API endpoints

Endpoint reference for the Network Finances tag (17 endpoints): Network-level financial management — advertiser payments, publisher payouts, and balance tracking

Reference network manager admin

Network-level financial management — advertiser payments, publisher payouts, and balance tracking. 17 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

GET /rest-api/advertiser/{advertiserId}/payments.do

Request examples

List advertiser payments.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesAdvertiser ID
balanceMonthquerystringnoMonth whose balance record ‘balance’ reports, yyyy-MM (2010-01 to 2050-12). The current month when omitted.
limitqueryintegernoPage size, 1 to 1000
monthqueryarray<integer>noOnly payments of these months (1-12)
startqueryintegerno0-based offset of the first payment to return
yearqueryarray<integer>noOnly payments of these years

Responses: 200 — {success, advertiserId, advertiserName, total, start, limit, totalAmount, payments:[{paymentId, date (yyyy-MM-dd), year, month, amount, comment}], balance:{year, month, startBalance, charges, payments, endOfMonthBalance}|null} · 404 — No such advertiser, or it is not shared with the caller. Errors follow the shared conventions.

POST /rest-api/advertiser/{advertiserId}/payments.do

Request examples

Add an advertiser payment.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesAdvertiser ID
amountformnumberyesAmount paid, in the network’s currency; greater than 0 and at most 9999999.999999
commentformstringnoOptional memo, up to 200 characters
dateformstringnoPayment date, yyyy-MM-dd between 2010 and 2050. Today when omitted.

Responses: 200 — Payment booked: {success, advertiserId, payment:{paymentId, date, year, month, amount, comment}} · 404 — No such advertiser, or it is not shared with the caller. Errors follow the shared conventions.

DELETE /rest-api/advertiser/{advertiserId}/payments/{paymentId}.do

Request examples

Delete an advertiser payment.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesAdvertiser ID
paymentIdpathintegeryesPayment ID, as returned by the payment list

Responses: 200 — Payment removed: {success, advertiserId, paymentId} · 404 — No such advertiser or payment, the payment belongs to another advertiser, or the advertiser is not shared with the caller. Errors follow the shared conventions.

GET /rest-api/network/management/finances-summary.do

Request examples

Finances Summary.

No parameters beyond authentication.

Responses: 200 — Successful operation. Errors follow the shared conventions.

GET /rest-api/network/management/get-advertiser-payments.do

Request examples

List advertiser payments.

ParameterInTypeRequiredDescription
limitqueryintegernoMaximum number of results to return
startqueryintegernoResult offset for pagination
idqueryarray<integer>noFilter by advertiser IDs
yearqueryarray<integer>noFilter by year
monthqueryarray<integer>noFilter by month (1-12)

Responses: 200 — Advertiser payments returned successfully. Errors follow the shared conventions.

GET /rest-api/network/management/get-advertisers-balance.do

Request examples

Get advertiser balances.

ParameterInTypeRequiredDescription
yearqueryintegeryesYear to get balances for
monthqueryintegeryesMonth to get balances for (1-12)
categoryIdqueryintegernoFilter by advertising category ID (-1 for uncategorized)
onlyWithActivityquerybooleannoIf true, only return advertisers with charges or payments

Responses: 200 — Advertiser balances returned successfully. Errors follow the shared conventions.

GET /rest-api/network/management/get-publisher-payments.do

Request examples

List publisher payouts.

ParameterInTypeRequiredDescription
limitqueryintegernoMaximum number of results to return
startqueryintegernoResult offset for pagination
idqueryarray<integer>noFilter by publisher IDs
yearqueryarray<integer>noFilter by year
monthqueryarray<integer>noFilter by month (1-12)

Responses: 200 — Publisher payouts returned successfully. Errors follow the shared conventions.

GET /rest-api/network/management/get-publishers-balance.do

Request examples

Get publisher balances.

ParameterInTypeRequiredDescription
yearqueryintegeryesYear to get balances for
monthqueryintegeryesMonth to get balances for (1-12)
categoryIdqueryintegernoFilter by publishing category ID (-1 for uncategorized)
onlyWithActivityquerybooleannoIf true, only return publishers with payouts or amounts due

Responses: 200 — Publisher balances returned successfully. Errors follow the shared conventions.

GET /rest-api/network/management/network-finances-chart-data.do

Request examples

Get network finances chart data.

No parameters beyond authentication.

Responses: 200 — Monthly aggregate data returned successfully. Errors follow the shared conventions.

POST /rest-api/network/management/recalculate-balances.do

Request examples

Recalculate balances.

No parameters beyond authentication.

Responses: 200 — Balances recalculated successfully. Errors follow the shared conventions.

POST /rest-api/network/management/remove-advertiser-payment.do

Request examples

Remove advertiser payment.

ParameterInTypeRequiredDescription
idformintegeryesPayment ID to remove

Responses: 200 — Payment removed successfully. Errors follow the shared conventions.

POST /rest-api/network/management/remove-publisher-payment.do

Request examples

Remove publisher payout.

ParameterInTypeRequiredDescription
idformintegeryesPayout ID to remove

Responses: 200 — Payout removed successfully. Errors follow the shared conventions.

POST /rest-api/network/management/save-advertiser-payment.do

Request examples

Save advertiser payment.

ParameterInTypeRequiredDescription
amountformnumbernoPayment amount
commentformstringnoPayment comment or memo
dateformstringnoPayment date

Responses: 200 — Payment saved successfully. Errors follow the shared conventions.

POST /rest-api/network/management/save-publisher-payment.do

Request examples

Save publisher payout.

ParameterInTypeRequiredDescription
amountformnumbernoPayment amount
commentformstringnoPayment comment or memo
dateformstringnoPayment date

Responses: 200 — Payout saved successfully. Errors follow the shared conventions.

GET /rest-api/site/{siteId}/payouts.do

Request examples

List publisher payouts.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite ID
balanceMonthquerystringnoMonth whose balance record ‘balance’ reports, yyyy-MM (2010-01 to 2050-12). The current month when omitted.
limitqueryintegernoPage size, 1 to 1000
monthqueryarray<integer>noOnly payments of these months (1-12)
startqueryintegerno0-based offset of the first payment to return
yearqueryarray<integer>noOnly payments of these years

Responses: 200 — {success, siteId, siteName, total, start, limit, totalAmount, payouts:[{paymentId, date (yyyy-MM-dd), year, month, amount, comment}], balance:{year, month, balance, paidOut, toBePaid}|null} · 404 — No such site, or it is not shared with the caller. Errors follow the shared conventions.

POST /rest-api/site/{siteId}/payouts.do

Request examples

Add a publisher payout.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite ID
amountformnumberyesAmount paid, in the network’s currency; greater than 0 and at most 9999999.999999
commentformstringnoOptional memo, up to 200 characters
dateformstringnoPayment date, yyyy-MM-dd between 2010 and 2050. Today when omitted.

Responses: 200 — Payout booked: {success, siteId, payout:{paymentId, date, year, month, amount, comment}} · 404 — No such site, or it is not shared with the caller. Errors follow the shared conventions.

DELETE /rest-api/site/{siteId}/payouts/{paymentId}.do

Request examples

Delete a publisher payout.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite ID
paymentIdpathintegeryesPayout ID, as returned by the payout list

Responses: 200 — Payout removed: {success, siteId, paymentId} · 404 — No such site or payout, the payout belongs to another site, or the site is not shared with the caller. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.