The following validations are performed when creating a new promotions import:
The
templateName
,templatePath
,displayName
, and promotion ID are available and are valid. The shipping method, if provided, should also be valid.The
startDate
is not greater than theThe
promotionTemplates
should be valid and are available in the template path.The
Id
field insideexcludedPromotions
cannot be null and that promotions with the ID are valid.The
promotionId
cannot be the same as any otherexcludedPromotionsId
.TemplateValues
do not contain any keys other thanAllowedUIKeys
, and contain all of the keys listed inRequireUIKeys
.The promotion does not contain any coupon codes.
The
siteId
and theaudienceId
are valid.Included and excluded promotion types are compatible with the promotion:
If
templatePath=item
, allowed promotion types areitem
,order
orshipping
if
templatePath=order
, then allowed promotion types areorder
orshipping
if
templatePath=shipping
, then the allowed promotion type isshipping
The following validations are performed when updating an existing promotions import:
The promotion ID is there and valid.
The
templatePath
,templateName
andtype
of existing promotions have not been changed.If enabling a promotion that does not contain a coupon, ensure that there is no previous coupon associated with it.
For detailed information on working with promotions, refer to Using Oracle Commerce Cloud.