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
id
stringRequiredID of the address
created_at
DateRequiredThe date with timezone at which the resource was created.
updated_at
DateRequiredThe date with timezone at which the resource was updated.
deleted_at
null | DateRequiredThe date with timezone at which the resource was deleted.
customer_id
null | stringRequiredID of the customer this address belongs to
Available if the relation
customer
is expanded.company
null | stringRequiredCompany name
first_name
null | stringRequiredFirst name
last_name
null | stringRequiredLast name
address_1
null | stringRequiredAddress line 1
address_2
null | stringRequiredAddress line 2
city
null | stringRequiredCity
country_code
null | stringRequiredThe 2 character ISO code of the country in lower case
A country object.
province
null | stringRequiredProvince
postal_code
null | stringRequiredPostal Code
phone
null | stringRequiredPhone Number
metadata
Record<string, unknown>RequiredAn optional key-value map with additional details
Was this section helpful?