FilterablePromotionProps

The filters to apply on the retrieved promotions.

An array of filters to apply on the entity, where each item in the array is joined with an "and" condition.
An array of filters to apply on the entity, where each item in the array is joined with an "or" condition.
qstringOptional
The IDs to filter the promotions by.
idstring | string[]Optional
The IDs to filter the promotions by.
codestring | string[] | OperatorMap<string>Optional
Filter promotions by their code.
budget_idstring[] | OperatorMap<string>Optional
Filter promotions by the ID of their associated campaign budget.
is_automaticbooleanOptional
Filter promotions by whether they're applied automatically.
typePromotionTypeValues[]Optional
Filter promotions by their type.
statusPromotionStatusValues[]Optional
Filter promotions by their status.
campaignFilterableCampaignPropsOptional
Filter promotions by their campaign
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