- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createCustomerAddressesStep - Medusa Core Workflows Reference
This documentation provides a reference to the createCustomerAddressesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more customer addresses.
Example#
Input#
CreateCustomerAddressesStepInput
CreateCustomerAddressesStepInputThe data to create one or more customer addresses.
CreateCustomerAddressesStepInput
CreateCustomerAddressesStepInputcustomer_id
stringThe associated customer's ID.
customer_id
stringaddress_name
null | stringOptionalThe address's name.
address_name
null | stringOptionalis_default_shipping
booleanOptionalWhether the address is default shipping.
is_default_shipping
booleanOptionalis_default_billing
booleanOptionalWhether the address is the default for billing.
is_default_billing
booleanOptionalcompany
null | stringOptionalThe company.
company
null | stringOptionalfirst_name
null | stringOptionalThe first name.
first_name
null | stringOptionallast_name
null | stringOptionalThe last name.
last_name
null | stringOptionaladdress_1
null | stringOptionalThe address 1.
address_1
null | stringOptionaladdress_2
null | stringOptionalThe address 2.
address_2
null | stringOptionalcity
null | stringOptionalThe city.
city
null | stringOptionalcountry_code
null | stringOptionalThe country code.
country_code
null | stringOptionalprovince
null | stringOptionalThe province.
province
null | stringOptionalpostal_code
null | stringOptionalThe postal code.
postal_code
null | stringOptionalphone
null | stringOptionalThe phone.
phone
null | stringOptionalHolds custom data in key-value pairs.
Output#
CustomerAddressDTO[]
CustomerAddressDTO[]
CustomerAddressDTO[]
CustomerAddressDTO[]CustomerAddressDTO
CustomerAddressDTOThe customer address details.
CustomerAddressDTO
CustomerAddressDTOWas this page helpful?