PromotionDTO

The promotion details.

idstring
The ID of the promotion.
codestringOptional
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.
statusPromotionStatusValuesOptional
The status of the promotion:
  • active promotion is available for user to consume
  • inactive promotion is no longer available to the user
  • draft promotion is currently being prepared
is_automaticbooleanOptional
Whether the promotion is applied automatically.
application_methodApplicationMethodDTOOptional
The associated application method.
rulesPromotionRuleDTO[]Optional
The rules of the promotion.
campaign_idnull | stringOptional
The associated campaign.
campaignCampaignDTOOptional
The associated campaign.
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