- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createCustomersStep - Medusa Core Workflows Reference
This documentation provides a reference to the createCustomersStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more customers.
Example#
Input#
CreateCustomersStepInput
CreateCustomersStepInputThe data to create one or more customers.
CreateCustomersStepInput
CreateCustomersStepInputcompany_name
null | stringOptionalThe company name of the customer.
company_name
null | stringOptionalfirst_name
null | stringOptionalThe first name of the customer.
first_name
null | stringOptionallast_name
null | stringOptionalThe last name of the customer.
last_name
null | stringOptionalemail
null | stringOptionalThe email of the customer.
email
null | stringOptionalphone
null | stringOptionalThe phone of the customer.
phone
null | stringOptionalcreated_by
null | stringOptionalWho created the customer.
created_by
null | stringOptionalhas_account
booleanOptionalWhether the customer has an account.
has_account
booleanOptionalThe addresses of the customer.
Holds custom data in key-value pairs.
Output#
CustomerDTO[]
CustomerDTO[]
CustomerDTO[]
CustomerDTO[]CustomerDTO
CustomerDTOThe customer details.
CustomerDTO
CustomerDTOWas this page helpful?