Skip to main content

address

An address, such as a customer address or order shipping address.


Tip

Use the format_address filter to output an address according to its locale.


Properties

The first line of the address.

The second line of the address.

If no second line is specified, then nil is returned.

The city of the address.

The company of the address.

If no company is specified, then nil is returned.

The country of the address.

Anchor to
country_code

The country of the address in ISO 3166-1 (alpha 2) format.

The first name of the address.

The ID of the address.

The last name of the address.

A combination of the first and last names of the address.

The phone number of the address.

If no phone number is specified, then nil is returned.

The province of the address.

Anchor to
province_code

The province of the address in ISO 3166-2 (alpha 2) format.

Note

The value doesn't include the preceding ISO 3166-1 country code.

A combination of the first and second lines of the address.

A summary of the address, including the following properties:

  • First and last name
  • First and second lines
  • City
  • Province
  • Country

The relative URL for the address.

Note

This only applies to customer addresses.

The zip or postal code of the address.

{
"address1": "150 Elgin Street",
"address2": "8th floor",
"city": "Ottawa",
"company": "Polina's Potions, LLC",
"country": {},
"country_code": "CA",
"first_name": null,
"id": 56174706753,
"last_name": null,
"name": "",
"phone": "416-123-1234",
"province": "Ontario",
"province_code": "ON",
"street": "150 Elgin Street, 8th floor",
"summary": "150 Elgin Street, 8th floor, Ottawa, Ontario, Canada",
"url": "/account/addresses/56174706753",
"zip": "K2P 1L4"
}
Was this section helpful?