updateCustomersWorkflow - Medusa Core Workflows Reference

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

This workflow updates one or more customers.

Steps#

Input#

UpdateCustomersWorkflowInputUpdateCustomersWorkflowInput

Output#

CustomerDTO[]CustomerDTO[]

Hooks#

customersUpdated#

Example

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

Input

Handlers consuming this hook accept the following input.

input__type
Was this page helpful?