Create Loyalty Promotion for UCC

Lets you create a promotion for UCC a specific loyalty program.

Path Params
int64
required

Unique ID of the loyalty program associated with the promotion.

string
required

Type of promotion. Supported values SIMPLE, RANGE, KEYWORD

Body Params
int32

The ID of the ruleset. Set the value to -1. This indicates that a new promotion request is being created.

string
required

Unique name for the ruleset

int32
required

Unique ID of the loyalty program to associate with the promotion. You can create multiple promotions under a single loyalty program.

date
required

Validity of the promotion. Pass the date range in startDate and endDate (ISO standard - yyyy-mm-ddThh:mm:ss.s+z).

date
required

Validity of the promotion. Pass the ISO date range in startDate and endDate (ISO standard - yyyy-mm-ddThh:mm:ss.s+z).

string

Enter event action name that generates promotional points. For example, Bill

string
required

Unique identifier of the promotion

string
enum
required

Name of the event to associate with the promotion. For example, TRANSACTIONADD, CUSTOMERUPDATE, OfferScan, spinTheWheel, and more

Allowed:
qualifyingConditions
array of strings

Array of different conditions like KPI, parameters, and more.

qualifyingConditions
string

Name of the condition that is passed in qualifyingConditions.

allocationRule
array of strings

Set the condition to generate the promotional points.

allocationRule
int32
required

Unique ID of the promotion. Refer to the documentation on promotion IDs for more information.

int32
required

Unique ID of the organization

string
required

The type of context. Set to program.

string
required

Set to POINTSENGINE_ENDPOINT

string
required

Type of ruleset.

string
required

Format in Epoch time (ex. 1726207950)

boolean
required

Status of the promotion. Set to true when creating a promotion for the first time

rules
array of strings
required

The rules defined for the promotion

rules*
int32

The unique identifier for the rule.

boolean
required

Enable rule expression. Rule expressions are conditions that determine whether a statement is true or false. Refer to rule writing for more information.

string
required

The rule expression in JSON format.

boolean
required

Indicates whether the rule is active. Set to true when creating a promotion for the first time

int32

The priority of the rule.

int32

The start date of the rule. ISO 8601 Date Format

int32

The end date of the rule. ISO 8601 Date Format

int32

The timestamp when the rule was created. ISO 8601 Date Format

string
required

Name of the action

string
required

As a set of key pair values eg: "key": "ProRateOnSourceValue", "value": "EVENT_DEFAULT_VALUE"

Response

Language
Credentials
Basic
base64
:
URL
Request
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json