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[]id
stringis_automatic
booleanOptionalcode
stringOptionaldraft
indicates that a promotion is currently being preparedactive
indicates that a promotion is activeinactive
indicates that a promotion is no longer activecampaign_id
null | stringOptionalPromotionDTO[]
PromotionDTO[]id
stringcode
stringOptionalstandard
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_automatic
booleanOptionalcampaign_id
null | stringOptional