Lets you create a promotion for a specific loyalty program.
Request Parameters
Parameter | Data Type | Description |
---|---|---|
id* | Integer | Unique ID of the loyalty promotion. When creating a new promotion, this value must be set to |
name* | string | Unique name of the loyalty promotion. |
programId* | int | Unique ID of the loyalty program to associate with the promotion. You can create multiple promotions under a single loyalty program. |
startDate* | date-time | Start date of the promotion in ISO 8601 |
endDate* | date-time | End date of the promotion in ISO 8601 |
allocatePointsOn | string | Category for point allocation. Supported values: |
identifier* | string | Unique identifier for the promotion. This is an external identifier that can be used to identify the promotion. |
eventName* | Enum | Name of the event to associate with the promotion. Supported values: |
pointsOfferType* | Enum | Type of loyalty promotion. Supported values: |
rulesetInfo | Object | Contains details on the rules for the loyalty promotion. |
promotionRestrictions | Object | Contains details on the restrictions for the loyalty promotion. |
| Object | |
| Enum | Type of loyalty promotion. Supported values: |
| Boolean | Indicate if the promotion is stackable. A stackable promotion refers to the application of multiple promotions within a single transaction. Refer to the documentation on promotion stacking strategies for more information. |
| Boolean | Indicate if a promotion is exclusive. Exclusive promotions are evaluated individually and do not stack with any other promotion. Refer to the documentation on promotion stacking strategies for more information. |
| Boolean | Indicate if the promotion is considered for ranking. |
| Object | Contains information on the restrictions configured for a loyalty promotion. |
-- redemptionRestrictions | Object | Contains information on the redemption limits for a promotion. |
--- name | Enum | Type of redemption restriction. Supported values: |
--- value | Integer | Number of units corresponding to the |
--- type | Enum | Type of period for restriction. Supported values: |
--- periodType | Enum | Type of period for the restriction. Supported value: |
--- periodUnit | Enum | Frequency of the period. Supported values: |
-- issualRestrictions | Object | Contains information on the issual limits for a promotion. |
--- name | Enum | Type of issual restriction. Supported values: |
--- value | Integer | Number of units corresponding to the |
-- earnRestrictions | Object | Contains information on the earn limits for a promotion. This is specific for enrol and issue type promotion. |
--- name | Enum | Type of earn restriction. Supported values: |
--- value | Integer | Number of units corresponding to the |
-- expiryRestrictions* | Object | Contains information on the expiry for a promotion. This is mandatory for both enrol and issue and direct issue types of promotion. |
--- name* | Enum | Action that is expiring. Supported values: |
--- type* | Enum | Type of expiration. Supported values: |
--- value | Integer | Number of days the loyalty promotion expires from the date of issual. |
allocationActions | Object | Contains information on the allocation strategy and expiration of points for the promotion. |
| Object | Contains information on the points allocation strategy for the promotion. |
-- type | Enum | Type of allocation. Supported values: |
-- value | ||
| ||
-- type | ||
-- value | ||
| ||
qualifyingConditions | ||
| ||
| ||
| ||
| ||
| ||
conditionExpression | ||
allocationRule | ||
| ||
limits | ||
| ||
| ||
|