Checkout Step 1: Enter Email

The first step of the checkout flow is to enter the customer's email. Then, use the Update Cart API route to update the cart with the email.

TipIf the customer is logged-in, you can pre-fill the email with the customer's email.

For example:

After the customer enters and submits their email, you send a request to the Update Cart API route passing it the email in the request body.

Notice that if the cart doesn't have items, you should redirect to another page as the checkout requires at least one item in the cart.

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