Address
An address is used across the Medusa backend within other schemas and object types. For example, a customer's billing and shipping addresses both use the Address entity.
Properties
idstringRequiredID of the address
created_atDateRequiredThe date with timezone at which the resource was created.
updated_atDateRequiredThe date with timezone at which the resource was updated.
deleted_atnull | DateRequiredThe date with timezone at which the resource was deleted.
customer_idnull | stringRequiredID of the customer this address belongs to
Available if the relation
customer is expanded.companynull | stringRequiredCompany name
first_namenull | stringRequiredFirst name
last_namenull | stringRequiredLast name
address_1null | stringRequiredAddress line 1
address_2null | stringRequiredAddress line 2
citynull | stringRequiredCity
country_codenull | stringRequiredThe 2 character ISO code of the country in lower case
A country object.
provincenull | stringRequiredProvince
postal_codenull | stringRequiredPostal Code
phonenull | stringRequiredPhone Number
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
Was this section helpful?