createCustomerAddressesWorkflow - Medusa Core Workflows Reference

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

This workflow creates one or more customer address.

Steps#

Input#

CreateCustomerAddressesWorkflowInputCreateCustomerAddressesWorkflowInput

Output#

CustomerAddressDTO[]CustomerAddressDTO[]

Hooks#

addressesCreated#

Example

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

Input

Handlers consuming this hook accept the following input.

input__type
Was this page helpful?