Loading...
Was this page helpful?
This documentation provides a reference to the findOrCreateCustomerStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step either finds a customer matching the specified ID, or finds / create a customer matching the specified email. If both ID and email are provided, ID takes precedence. If the customer is a guest, the email is updated to the provided email.
FindOrCreateCustomerStepInput
FindOrCreateCustomerStepInputcustomerId
null | stringOptionalemail
null | stringOptionalcustomerId
isn't specified,
find a customer with this email or create a new customer having this email.FindOrCreateCustomerOutputStepOutput
FindOrCreateCustomerOutputStepOutputemail
null | stringOptional