Browse the help center

Network Finances API endpoints

Endpoint reference for the Network Finances tag (6 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. 6 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/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.