CreatePromotionDTO
The promotion to be created.
code
stringRequiredThe code of the promotion.
The type of the promotion:
standard
indicates that a promotion is a standard one applied with conditions.buyget
indicates that a promotion is a "Buy X get Y" promotion.
is_automatic
booleanWhether the promotion is applied automatically.
application_method
CreateApplicationMethodDTOThe associated application method.
application_method
CreateApplicationMethodDTOrules
CreatePromotionRuleDTO[]The rules of the promotion.
rules
CreatePromotionRuleDTO[]campaign
CreateCampaignDTOThe associated campaign.
campaign
CreateCampaignDTOcampaign_id
stringThe associated campaign's ID.
Was this section helpful?