- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createCartsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createCartsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates a cart.
Input#
CreateCartsStepInput
CreateCartsStepInputThe details of the carts to create.
CreateCartsStepInput
CreateCartsStepInputcurrency_code
stringThe currency code of the cart.
currency_code
stringregion_id
stringOptionalThe associated region's ID.
region_id
stringOptionalcustomer_id
stringOptionalThe associated customer's ID.
customer_id
stringOptionalsales_channel_id
stringOptionalThe associated sales channel's ID.
sales_channel_id
stringOptionalemail
stringOptionalThe email of the customer that owns the cart.
email
stringOptionalshipping_address_id
stringOptionalThe associated shipping address's ID.
shipping_address_id
stringOptionalbilling_address_id
stringOptionalThe associated billing address's ID.
billing_address_id
stringOptionalThe shipping address of the cart.
The billing address of the cart.
metadata
Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
Record<string, unknown>OptionalThe items of the cart.
Output#
Was this page helpful?