- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateCartsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateCartsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates a cart.
Example#
Input#
UpdateCartsStepInput
UpdateCartsStepInputThe details of the carts to update.
UpdateCartsStepInput
UpdateCartsStepInputid
stringThe ID of the cart to update.
id
stringpromo_codes
string[]OptionalAn array of promotional codes applied on the cart.
promo_codes
string[]Optionalregion_id
stringOptionalThe ID of the cart's region.
region_id
stringOptionalcustomer_id
null | stringOptionalThe ID of the cart's customer.
customer_id
null | stringOptionalsales_channel_id
null | stringOptionalThe ID of the cart's sales channel.
sales_channel_id
null | stringOptionalemail
null | stringOptionalThe email address of the cart's customer.
email
null | stringOptionalcurrency_code
stringOptionalThe currency code for the cart.
currency_code
stringOptionalmetadata
null | Record<string, unknown>OptionalCustom key-value pairs of data related to the cart.
metadata
null | Record<string, unknown>OptionalThe cart's shipping address. You can either update the cart's existing shipping address, or create a new one.
The cart's billing address. You can either update the cart's existing billing address, or create a new one.
Output#
Was this page helpful?