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