Campaign

In this document, you'll learn about campaigns.

What is a Campaign?#

A Campaign combines promotions under the same conditions, such as start and end dates.

A diagram showcasing the relation between the Campaign and Promotion data models


Campaign Limits#

Each campaign has a budget represented by the CampaignBudget data model. The budget limits how many times the promotion can be used.

There are two types of budgets:

  • spend: An amount that, when crossed, the promotion becomes unusable. For example, if the amount limit is set to $100, and the total amount of usage of this promotion crosses that threshold, the promotion can no longer be applied.
  • usage: The number of times that a promotion can be used. For example, if the usage limit is set to 10, the promotion can be used only 10 times by customers. After that, it can no longer be applied.

A diagram showcasing the relation between the Campaign and CampaignBudget data models

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