Merkl Developer Portal logo
post

/v4/credits/estimate

Estimate the credit cost of a points campaign's next run, mirroring the engine pre-check. Returns estimatedCost (pro-rated over the next run window, capped at 1 week) and threshold (= max(estimatedCost, BASE_COST_PER_WEEK), the minimum balance required for the pre-check to pass).

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