Skip to main content
Skip to main content

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

idstringRequired
ID of the address
created_atDateRequired
The date with timezone at which the resource was created.
updated_atDateRequired
The date with timezone at which the resource was updated.
deleted_atnull | DateRequired
The date with timezone at which the resource was deleted.
customer_idnull | stringRequired
ID of the customer this address belongs to
customernull | CustomerRequired
Available if the relation customer is expanded.
companynull | stringRequired
Company name
first_namenull | stringRequired
First name
last_namenull | stringRequired
Last name
address_1null | stringRequired
Address line 1
address_2null | stringRequired
Address line 2
citynull | stringRequired
City
country_codenull | stringRequired
The 2 character ISO code of the country in lower case
countrynull | CountryRequired
A country object.
provincenull | stringRequired
Province
postal_codenull | stringRequired
Postal Code
phonenull | stringRequired
Phone Number
metadataRecord<string, unknown>Required
An optional key-value map with additional details
Was this section helpful?