CreatePromotionDTO

The promotion to be created.

codestring
The 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.
The status of the promotion:
  • draft indicates that a promotion is currently being prepared
  • active indicates that a promotion is active
  • inactive indicates that a promotion is no longer active
application_methodCreateApplicationMethodDTO
The associated application method.
is_automaticbooleanOptional
Whether the promotion is applied automatically.
rulesCreatePromotionRuleDTO[]Optional
The rules of the promotion.
campaignCreateCampaignDTOOptional
The associated campaign.
campaign_idstringOptional
The associated campaign's ID.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break