address
An address, such as a customer address or order shipping address.
Properties
The second line of the address.
If no second line is specified, then
nil
is returned.The company of the address.
If no company is specified, then
nil
is returned.The country of the address in ISO 3166-1 (alpha 2) format.
The phone number of the address.
If no phone number is specified, then
nil
is returned.The province of the address in ISO 3166-2 (alpha 2) format.
NoteThe value doesn't include the preceding ISO 3166-1 country code.
A summary of the address, including the following properties:
- First and last name
- First and second lines
- City
- Province
- Country
{
"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"
}
{
"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?