Skip to main content

GET /sdk/v1/campaign-creators/:campaignCreatorRecordId/payout-report/data

Returns the same agency-view report used to generate the payout report PDF, as JSON. Use it to read each post, tracked account, and non-media line item without parsing a PDF. All requests require X-Application-Id, X-Api-Key, and the payouts:read API key scope. The campaign creator must belong to your application’s agency.

Parameters

Dates are inclusive and interpreted in the campaign’s time zone. You can request a single day by using the same start and end date. The range selects payout activity, using the same rules as the PDF; it is not an upload-date filter. Do not send agencyId: the API derives it from your SDK credentials.

Example request

Response

The response is application/json with { "success": true, "data": ... }. data contains the complete report: The endpoint does not paginate or truncate rows. Empty sections are empty arrays. Reports with more than 10,000 rows across the three arrays return 413; request a shorter activity range. The report is built when requested, just like the date-range PDF. Values can change as tracking and payout activity change between requests.

Post rows

Post status is PAID, PAYABLE, PAID VIA CROSSPOST, PAYABLE VIA CROSSPOST, NOT PAYABLE, NOT PAID, or null. Linked posts remain separate rows, including rows with zero amounts.

Tracked account rows

Each row contains accountUrl, platform, trackingStartDate, trackVideosFor, showTrackingDuration, and reason. The URL and tracking start timestamp can be null. The PDF uses showTrackingDuration to decide whether to display the tracking duration.

Non-media rows

Each row contains lineItem, type, activityDate, status, invoice, amount, and note. The activity timestamp and invoice can be null. An optional payCycleWindow includes startAt, endAt, and timeZone. status is Paid, Will be paid, or Not included. The line-item types are Bonus, Performance, Fixed, Platform fee, Rounding adjustment, and Other. Amounts can be zero or negative; preserve them when exporting rows.

Money and totals

Money objects contain amount (a number in major currency units, not cents), currency, and display (formatted text), for example:
Use summary.totalPaidByCurrency and summary.totalPayableByCurrency for currency-specific totals. Do not add amounts with different currencies or sum the display strings. amountsApplied is expressed in USD; other money objects carry their own currency.

Read rows in JavaScript

Common errors

  • 400: missing, invalid, or reversed date range; client-supplied agencyId
  • 401: missing or invalid SDK credentials
  • 403: missing payouts:read scope, SDK access disabled, or origin not allowed
  • 404: campaign creator record not found in your agency
  • 413: report exceeds 10,000 rows; use a shorter date range
  • 500: report could not be generated