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[]code
stringstandard
indicates that a promotion is a standard one applied with conditions.buyget
indicates that a promotion is a "Buy X get Y" promotion.status
PromotionStatusValuesdraft
indicates that a promotion is currently being preparedactive
indicates that a promotion is activeinactive
indicates that a promotion is no longer activeapplication_method
CreateApplicationMethodDTOis_automatic
booleanOptionalcampaign_id
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