updateCustomersStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateCustomersStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more customers.
Example#
Input#
UpdateCustomersStepInput
UpdateCustomersStepInputThe data to update one or more customers.
UpdateCustomersStepInput
UpdateCustomersStepInputselector
FilterableCustomerPropsThe filters to select the customers to update.
selector
FilterableCustomerPropsupdate
CustomerUpdatableFieldsThe data to update the customers with.
update
CustomerUpdatableFieldsOutput#
CustomerDTO[]
CustomerDTO[]
CustomerDTO[]
CustomerDTO[]id
stringThe ID of the customer.
id
stringemail
stringThe email of the customer.
email
stringhas_account
booleanA flag indicating if customer has an account or not.
has_account
booleandefault_billing_address_id
null | stringThe associated default billing address's ID.
default_billing_address_id
null | stringdefault_shipping_address_id
null | stringThe associated default shipping address's ID.
default_shipping_address_id
null | stringcompany_name
null | stringThe company name of the customer.
company_name
null | stringfirst_name
null | stringThe first name of the customer.
first_name
null | stringlast_name
null | stringThe last name of the customer.
last_name
null | stringaddresses
CustomerAddressDTO[]The addresses of the customer.
addresses
CustomerAddressDTO[]phone
null | stringThe phone of the customer.
phone
null | stringgroups
object[]The groups of the customer.
groups
object[]metadata
Record<string, unknown>Holds custom data in key-value pairs.
metadata
Record<string, unknown>created_by
null | stringWho created the customer.
created_by
null | stringdeleted_at
null | string | DateThe deletion date of the customer.
deleted_at
null | string | Datecreated_at
string | DateThe creation date of the customer.
created_at
string | Dateupdated_at
string | DateThe update date of the customer.
updated_at
string | DateWas this page helpful?