Skip to main content

POST /sdk/v1/campaign-creators/line-items/query

Returns the calculated payment items for specific campaign creators or for one campaign. Each media item includes its URL and campaignCreatorMediaId. All requests require X-Application-Id and X-Api-Key.

Choose creators

Send exactly one of:
  • campaignCreatorRecordIds: up to 500 campaign creator record IDs.
  • campaignId: one campaign. You can also send page and limit; limit defaults to 100 and cannot exceed 500.

Optional fields

  • startDate and endDate: an inclusive YYYY-MM-DD payment range. Send both or neither.
  • includeNonPayable: include items that are not currently payable and the reason for each. Default: true.

Example request

To read a campaign one page at a time, use this body instead:

Response

Each result includes the campaign’s effectiveTimeZone, resolved from the campaign override, agency fallback, or UTC. The dateRange and media business dates should be interpreted in that IANA timezone. Every line item includes these three fields, including BONUS items and non-payable items: Media-backed BONUS items also include platform. Creator-level payments can cover multiple posts and therefore have no single upload date or platform. Canonical upload dates are preserved as calendar dates; tracking-completion timestamps are converted to the campaign’s effectiveTimeZone. eligibleOn describes contract timing, not when a bonus threshold was reached or when funds were sent. Other requirements can still make an item non-payable; use payable and reason for its current status. For completion-based payments without a configured tracking window, the calculation falls back to the upload date. Crosspost groups and creator-level aggregates use the date selected by the payout calculation, which can differ from the displayed post’s own date.
Bonus tiers do not stack. If the tiers pay 10 at 1,000 views and 50 at 10,000 views, a post with 50,000 views earns 50—not 60.
An unknown or inaccessible creator, a creator whose requested endDate predates their first contract terms, or a creator with a payout item that predates those terms is returned in failures without stopping the rest of the request. The failure reason distinguishes the requested-date and payout-item cases.

Common errors

  • 400: invalid selector, more than 500 creators, or incomplete date range
  • 401: missing or invalid SDK credentials
  • 404: selected campaign not found