address object
A customer address. It comes from customer.addresses, customer.default_address, customer.new_address and order.shipping_address.
Properties
| Name | Type | Description |
|---|---|---|
id | string | The address id. Nil for customer.new_address |
first_name | string | The first name |
last_name | string | The last name |
name | string | The first and last name |
company | string | The company |
address1 | string | The first address line |
address2 | string | The second address line |
city | string | The city |
province | string | The region |
zip | string | The zip code |
country_code | string | The country code, for example MA |
country | string | The country name |
phone | string | The phone number |
default | boolean | Whether this is the default address |
The customer_address form uses other input names for some of these fields. See the form for the inputs.