Skip to main content
POST
Preview a balance credit

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Body

application/json
accountIds
string[]
required

The accounts to consider (1 to 5,000 of your organization; duplicates are ignored).

Required array length: 1 - 5000 elements
Example:
windowStart
string<date-time>
required

Start of the incident window (inclusive), ISO 8601.

Example:

"2026-10-21T13:30:00Z"

windowEnd
string<date-time>
required

End of the incident window (exclusive). Must be in the past; the window may span at most 7 days.

Example:

"2026-10-21T14:15:00Z"

policy
object

How the credit is computed and applied. Every field is optional; the defaults are shown.

Response

Preview

success
boolean
Example:

true

data
object