Browse the help center

Network Finances API endpoints

Endpoint reference for the Network Finances tag (25 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. 25 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.
dirquerystringnoASC or DESC (default) Values: ASC, DESC.
fromquerystringnoFirst payment day included, yyyy-MM-dd
limitqueryintegernoPage size, 1 to 1000
monthqueryarray<integer>noOnly payments of these months (1-12)
queryquerystringnoPart of the comment, case-insensitive
sortquerystringnoOrder: DATE (default), AMOUNT, COMMENT, CREATED or UPDATED Values: DATE, AMOUNT, ENTITY, COMMENT, CREATED, UPDATED.
startqueryintegerno0-based offset of the first payment to return
toquerystringnoLast payment day included, yyyy-MM-dd
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, createdAt, createdBy, updatedAt, updatedBy}], balance:{year, month, startBalance, charges, payments, endOfMonthBalance}|null, balancesStart: yyyy-MM|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.

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

Request examples

Change an advertiser payment.

ParameterInTypeRequiredDescription
advertiserIdpathintegeryesAdvertiser ID
paymentIdpathintegeryesPayment ID, as returned by the payment list
amountformnumbernoNew amount, in the network’s currency; greater than 0 and at most 9999999.999999
commentformstringnoNew memo, up to 200 characters; an empty value clears it
dateformstringnoNew payment date, yyyy-MM-dd between 2010 and 2050

Responses: 200 — Payment changed: {success, advertiserId, payment:{paymentId, date, year, month, amount, comment, createdAt, createdBy, updatedAt, updatedBy}} · 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.

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/balances-start.do

Request examples

Get the month the balances start from.

No parameters beyond authentication.

Responses: 200 — {success, startMonth: yyyy-MM|null, editable}. Errors follow the shared conventions.

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

Request examples

Set the month the balances start from.

ParameterInTypeRequiredDescription
startMonthformstringnoFirst month of the balances, yyyy-MM between 2010-01 and 2050-12; empty to start from the beginning

Responses: 200 — {success, startMonth, editable}; {success:false, errors:{startMonth}} on a malformed month. 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-balance-history.do

Request examples

Get advertiser balance history.

ParameterInTypeRequiredDescription
idqueryintegeryesAdvertiser ID

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}. 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, up to 1000; 1000 when omitted
startqueryintegernoResult offset for pagination
idqueryarray<integer>noFilter by advertiser IDs
yearqueryarray<integer>noFilter by year
monthqueryarray<integer>noFilter by month (1-12)
fromquerystringnoFirst payment day included, yyyy-MM-dd
toquerystringnoLast payment day included, yyyy-MM-dd
queryquerystringnoPart of the comment or of the advertiser’s name, case-insensitive
sortquerystringnoOrder by: DATE (default), AMOUNT, ENTITY (advertiser name), COMMENT, CREATED or UPDATED
dirquerystringnoASC or DESC (default)

Responses: 200 — {data:[{id, advertiserId, advertiserName, advertiserDeleted, date, year, month, amount, comment, createdAt, createdByName, updatedAt, updatedByName}], total, totalAmount}. 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-balance-history.do

Request examples

Get publisher balance history.

ParameterInTypeRequiredDescription
idqueryintegeryesPublisher (site) ID

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}. 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, up to 1000; 1000 when omitted
startqueryintegernoResult offset for pagination
idqueryarray<integer>noFilter by publisher IDs
yearqueryarray<integer>noFilter by year
monthqueryarray<integer>noFilter by month (1-12)
fromquerystringnoFirst payout day included, yyyy-MM-dd
toquerystringnoLast payout day included, yyyy-MM-dd
queryquerystringnoPart of the comment or of the publisher’s name, case-insensitive
sortquerystringnoOrder by: DATE (default), AMOUNT, ENTITY (publisher name), COMMENT, CREATED or UPDATED
dirquerystringnoASC or DESC (default)

Responses: 200 — {data:[{id, publisherId, publisherName, publisherDeleted, date, year, month, amount, comment, createdAt, createdByName, updatedAt, updatedByName}], total, totalAmount}. 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.

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

Request examples

Update advertiser payment.

ParameterInTypeRequiredDescription
amountformnumberyesNew amount, in the network’s currency; greater than 0
dateformstringyesNew payment date, dd/MM/yyyy, between 2010 and 2050
idformintegeryesId of the payment to change, as the payment list returns it
commentformstringnoNew comment, up to 200 characters; empty clears it

Responses: 200 — {success:true} when changed; {success:false, errors:{field: message}} on a validation error; {success:false, msg} when there is no such payment. Errors follow the shared conventions.

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

Request examples

Update publisher payout.

ParameterInTypeRequiredDescription
amountformnumberyesNew amount, in the network’s currency; greater than 0
dateformstringyesNew payment date, dd/MM/yyyy, between 2010 and 2050
idformintegeryesId of the payment to change, as the payment list returns it
commentformstringnoNew comment, up to 200 characters; empty clears it

Responses: 200 — {success:true} when changed; {success:false, errors:{field: message}} on a validation error; {success:false, msg} when there is no such payout. 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.
dirquerystringnoASC or DESC (default) Values: ASC, DESC.
fromquerystringnoFirst payment day included, yyyy-MM-dd
limitqueryintegernoPage size, 1 to 1000
monthqueryarray<integer>noOnly payments of these months (1-12)
queryquerystringnoPart of the comment, case-insensitive
sortquerystringnoOrder: DATE (default), AMOUNT, COMMENT, CREATED or UPDATED Values: DATE, AMOUNT, ENTITY, COMMENT, CREATED, UPDATED.
startqueryintegerno0-based offset of the first payment to return
toquerystringnoLast payment day included, yyyy-MM-dd
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, createdAt, createdBy, updatedAt, updatedBy}], balance:{year, month, balance, paidOut, toBePaid}|null, balancesStart: yyyy-MM|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.

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

Request examples

Change a publisher payout.

ParameterInTypeRequiredDescription
siteIdpathintegeryesSite ID
paymentIdpathintegeryesPayout ID, as returned by the payout list
amountformnumbernoNew amount, in the network’s currency; greater than 0 and at most 9999999.999999
commentformstringnoNew memo, up to 200 characters; an empty value clears it
dateformstringnoNew payment date, yyyy-MM-dd between 2010 and 2050

Responses: 200 — Payout changed: {success, siteId, payout:{paymentId, date, year, month, amount, comment, createdAt, createdBy, updatedAt, updatedBy}} · 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.

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.