Skip to main content

GET /sdk/v1/campaign-creators/:campaignCreatorRecordId/contract-history

Returns the creator’s contract timeline in a UI-ready format. The response identifies the current contract, the next scheduled contract, and every historic or scheduled version. All requests require X-Application-Id and X-Api-Key.

Path parameter

  • campaignCreatorRecordId (required): the campaign creator whose contracts you want to read.

Example request

Response

timeZone is the campaign’s effective IANA timezone, after applying the campaign override, agency fallback, and final UTC fallback. businessDate and contract effective dates are evaluated in this timezone. status is one of:
  • CURRENT: active on businessDate
  • SCHEDULED: begins on a future effective date
  • HISTORIC: ended before businessDate
An empty timeline returns current: null, nextScheduled: null, and history: []. To create its first contract, send basedOnVersionId: null to the create endpoint. null is an explicit empty-timeline concurrency assertion, not a default: the write fails if another contract appears first. Keep the versionId for the version governing the date you intend to edit. Pass it as basedOnVersionId when creating a version. If another writer changes that part of the timeline first, the write is rejected instead of silently overwriting newer contract terms.

Common errors

  • 401: missing or invalid SDK credentials
  • 404: campaign creator record not found
Use Create a contract version to add a new effective date to this timeline.