Get Started
Product
Commerce Modules
Architectural Modules
Build
Recipes
How-to & Tutorials
Integrations
Storefront
Tools
CLI Tools
JS SDK
Next.js Starter
Medusa UI
Reference
Admin API
Store API
Admin Injection Zones
Container Resources
Core Workflows
Data Model Language
Events Reference
Helper Steps
Service Factory
Testing Framework
Workflows SDK
User Guide
v2.6.1
·
Help
Troubleshooting
Report Issue
Discord Community
Contact Sales
·
Ask AI
Homepage
Medusa v1
Changelog
Hide Sidebar
⌘\
Theme
Light
Dark
Menu
Get Started
Product
Build
Tools
Reference
User Guide
Documentation
GetPromotionCodesToApplyStepInput
The details of the promotion codes to apply on a cart.
cart
object
The cart containing items and shipping methods.
promo_codes
string[]
Optional
the promotion codes to be applied to the cart.
action
ADD
|
REMOVE
|
REPLACE
Optional
Whether to add, remove, or replace promotion codes.
Was this page helpful?
It was helpful
It wasn't helpful
Report Issue
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
⇧
↵
Guides
All Areas
Guides
References
Admin API
Store API
Medusa UI
Clear
Commands
AI Assistant
Beta
Search Suggestions
Medusa Configurations
Commerce Modules
Medusa Workflows Reference
Storefront Development
Navigation
↑
↓
Open Result
↵