Skip to main content
POST
Preview a mass 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
templateId
string

Start from a template: its rules (and selection), overridden by rules and selection in this request

rules
object

How the credit is computed. Every field is optional (a template or the defaults fill the rest), except the window, which the request or the template must give.

selection
object
accounts
string[]

Selection list: account ids or account numbers (up to 10,000; duplicates are ignored)

Maximum array length: 10000
Required string length: 1 - 64
deferStart
boolean
default:false

Selection list: create a draft to add more accounts to before starting

Response

Created - A draft list preview (with deferStart); add accounts, then start it

success
boolean
Example:

true

data
object