Skip to main content
POST
Credit back an incident window's losses

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"

reason
string
required

Why the accounts are credited. Recorded on every adjustment, the account activity and the webhook.

Required string length: 3 - 200
Example:

"US-open outage, 21 October"

tag
string
required

Your name for this credit (letters, digits, ., _, :, -). One credit batch per tag: sending the same tag again is refused with 409.

Required string length: 3 - 80
Pattern: ^[A-Za-z0-9._:-]+$
Example:

"incident-2026-10-21"

expectedTotalAmount
number
required

totals.totalAmount from the preview you reviewed. If the recomputed total differs, nothing is credited and the call answers 409 PREVIEW_CHANGED.

Example:

186420.75

policy
object

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

Response

Accepted - The batch has started

success
boolean
Example:

true

data
object