Merkl Developer Portal logo
post

/v4/credits/estimate/total

Estimate the total credit cost of a points campaign over its full duration (endTimestamp − startTimestamp). Used at creation time to gate campaign submission when the creator's balance is insufficient. Returns estimatedCost (full pro-rated cost) and threshold (= max(estimatedCost, BASE_COST_PER_WEEK)).

Request body

startTimestampnumber
required

Campaign start timestamp (unix seconds)

endTimestampnumber
required

Campaign end timestamp (unix seconds)

computedUntilnumber

Last computed-until timestamp (unix seconds). Defaults to startTimestamp.

recipientCountnumber

Expected recipient count