CreatePromotionDTO
The promotion to be created.
codestringRequiredThe code of the promotion.
The type of the promotion:
standardindicates that a promotion is a standard one applied with conditions.buygetindicates that a promotion is a "Buy X get Y" promotion.
is_automaticbooleanWhether the promotion is applied automatically.
application_methodCreateApplicationMethodDTOThe associated application method.
application_methodCreateApplicationMethodDTOrulesCreatePromotionRuleDTO[]The rules of the promotion.
rulesCreatePromotionRuleDTO[]campaignCreateCampaignDTOThe associated campaign.
campaignCreateCampaignDTOcampaign_idstringThe associated campaign's ID.
Was this section helpful?