Earning Rules
Create earning rule
<Warning><Badge color="yellow">BETA endpoint</Badge>
This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.
</Warning>Creates a new earning rule. When status is omitted the rule is created as DRAFT. When validity_hours is omitted it defaults to { "type": "ANY_TIME" }. When trigger_limits is omitted it defaults to { "cooldown": { "type": "NO_COOLDOWN" }, "frequency": { "type": "NO_LIMIT" } }.
post/v2/loyalties/earning-rules
Request body
Response
Earning rule created