CreateCartAddressDTO

The details of the address to create.

Properties#

first_namestringOptional
The first name of the customer associated with the address.
last_namestringOptional
The last name of the customer associated with the address.
phonestringOptional
The address's phone number
companystringOptional
The address's company name.
address_1stringOptional
The primary address line.
address_2stringOptional
The secondary address line.
citystringOptional
The city of the address.
country_codestringOptional
The country code of the address.
provincestringOptional
The province or state of the address.
postal_codestringOptional
The postal code of the address.
metadataRecord<string, unknown>Optional
Custom key-value pairs related to the address.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break