createCustomersWorkflow - Medusa Core Workflows Reference

This documentation provides a reference to the createCustomersWorkflow. It belongs to the @medusajs/medusa/core-flows package.

This workflow creates one or more customers.

Steps#

Input#

CreateCustomersWorkflowInputCreateCustomersWorkflowInput

Output#

CustomerDTO[]CustomerDTO[]

Hooks#

customersCreated#

Example

Code
1import { createCustomersWorkflow } from "@medusajs/medusa/core-flows"2
3createCustomersWorkflow.hooks.customersCreated(4	(async ({ customers, additional_data }, { container }) => {5		//TODO6	})7)

Input

Handlers consuming this hook accept the following input.

input__type
Was this page helpful?