updateCustomerAddressesWorkflow - Medusa Core Workflows Reference

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

This workflow updates one or more customer addresses.

Steps#

Input#

UpdateCustomerAddressesWorkflowInputUpdateCustomerAddressesWorkflowInput

Output#

CustomerAddressDTO[]CustomerAddressDTO[]

Hooks#

addressesUpdated#

Example

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

Input

Handlers consuming this hook accept the following input.

input__type
Was this page helpful?