CampaignBudget - Promotion Module Data Models Reference

This documentation provides a reference to the CampaignBudget data model. It belongs to the Promotion Module.

idPrimaryKeyModifier<IdProperty>
The ID of the campaign budget.
typeEnumProperty<typeof CampaignBudgetType>
The type of the campaign budget
usedBigNumberProperty
How much of the budget has been used. if the limit is spend, this property holds the total amount discounted so far. if the limit is usage, it holds the number of times the campaign's promotions have been used so far.
campaignBelongsTo<Campaign>
The associated campaign.
currency_codeTextPropertyOptional
The currency code of the campaign budget. @example usd
limitBigNumberPropertyOptional
The limit of the campaign budget
Was this page helpful?
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