Create Loyalty Promotion for UCCAsk AIpost https://{host}/api_gateway/loyalty/v1/programs/{programId}/createPromotion/{promotionType}Lets you create a promotion for UCC a specific loyalty program.Path ParamsprogramIdint64requiredUnique ID of the loyalty program associated with the promotion.promotionTypestringrequiredType of promotion. Supported values SIMPLE, RANGE, KEYWORDBody Paramsidint32The ID of the ruleset. Set the value to -1. This indicates that a new promotion request is being created.namestringrequiredUnique name for the rulesetprogramIdint32requiredUnique ID of the loyalty program to associate with the promotion. You can create multiple promotions under a single loyalty program.startDatedaterequiredValidity of the promotion. Pass the date range in startDate and endDate (ISO standard - yyyy-mm-ddThh:mm:ss.s+z).endDatedaterequiredValidity of the promotion. Pass the ISO date range in startDate and endDate (ISO standard - yyyy-mm-ddThh:mm:ss.s+z).allocatePointsOnstringEnter event action name that generates promotional points. For example, BillidentifierstringrequiredUnique identifier of the promotioneventNamestringenumrequiredName of the event to associate with the promotion. For example, TRANSACTIONADD, CUSTOMERUPDATE, OfferScan, spinTheWheel, and moreAllowed:''qualifyingConditionsarray of stringsArray of different conditions like KPI, parameters, and more.qualifyingConditionsADD stringconditionExpressionstringName of the condition that is passed in qualifyingConditions.allocationRulearray of stringsSet the condition to generate the promotional points.allocationRuleADD stringcontextIDint32requiredUnique ID of the promotion. Refer to the documentation on promotion IDs for more information.orgIDint32requiredUnique ID of the organizationcontextTypestringrequiredThe type of context. Set to program.endpointNamestringrequiredSet to POINTSENGINE_ENDPOINTtypestringrequiredType of ruleset.startDate , endDatestringrequiredFormat in Epoch time (ex. 1726207950)activebooleanrequiredStatus of the promotion. Set to true when creating a promotion for the first timerulesarray of stringsrequiredThe rules defined for the promotionrules*ADD string-idint32The unique identifier for the rule.-expbooleanrequiredEnable rule expression. Rule expressions are conditions that determine whether a statement is true or false. Refer to rule writing for more information.-expJSONstringrequiredThe rule expression in JSON format.-isActivebooleanrequiredIndicates whether the rule is active. Set to true when creating a promotion for the first time-priorityint32The priority of the rule.-startDateint32The start date of the rule. ISO 8601 Date Format-endDateint32The end date of the rule. ISO 8601 Date Format-createdOnint32The timestamp when the rule was created. ISO 8601 Date Format--namestringrequiredName of the action--mandatoryPropertiesValuesstringrequiredAs a set of key pair values eg: "key": "ProRateOnSourceValue", "value": "EVENT_DEFAULT_VALUE"Response 200200Updated 17 days ago