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.
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 is returned in failures without stopping the rest of the request.

Common errors

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