Loading...
Was this page helpful?
This documentation provides a reference to the createPromotionsStep. It belongs to the @medusajs/medusa/core-flows package.
This step creates one or more promotions.
CreatePromotionDTO[]CreatePromotionDTO[]codestringstandard indicates that a promotion is a standard one applied with conditions.buyget indicates that a promotion is a "Buy X get Y" promotion.statusPromotionStatusValuesdraft indicates that a promotion is currently being preparedactive indicates that a promotion is activeinactive indicates that a promotion is no longer activeapplication_methodCreateApplicationMethodDTOis_automaticbooleanOptionalis_tax_inclusivebooleanOptionalcampaign_idstringOptionalPromotionDTO[]PromotionDTO[]idstringcodestringOptionalstandard indicates that a promotion is a standard one applied with conditions.buyget indicates that a promotion is a "Buy X get Y" promotion.active promotion is available for user to consumeinactive promotion is no longer available to the userdraft promotion is currently being preparedis_automaticbooleanOptionalis_tax_inclusivebooleanOptionalcampaign_idnull | stringOptional