Loading...
Was this page helpful?
This documentation provides a reference to the updatePromotionsStep. It belongs to the @medusajs/medusa/core-flows package.
This step updates one or more promotions.
UpdatePromotionDTO[]UpdatePromotionDTO[]idstringis_automaticbooleanOptionalcodestringOptionalis_tax_inclusivebooleanOptionaldraft indicates that a promotion is currently being preparedactive indicates that a promotion is activeinactive indicates that a promotion is no longer activecampaign_idnull | stringOptionalPromotionDTO[]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