Create

View as Markdown
Creates a retention incentive eligibility rule with their incentive templates.

Authentication

x-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
namestringRequired
Anything to help identify this rule
livebooleanRequired

Active / inactive state for this rule

min_days_since_last_claimintegerOptional
Minimum number of days since the last retention incentive has been claimed for a given customer
min_subscriber_orders_since_last_claimintegerOptional
Minimum number of orders that had to be placed since the last retention incentive was claimed for a given customer
incentive_templateslist of objectsOptional

Response

200
public_idstringOptional
namestringOptional
merchantstringOptional
livebooleanOptionalDefaults to true
min_days_since_last_claimintegerOptionalDefaults to 0
min_subscriber_orders_since_last_claiminteger or nullOptional
incentive_templateslist of objectsOptional

Errors

400
Bad Request Error