Skip to main content
object

A physical mailing address. For example, a Customer's default address and an Order's billing address are both mailing addresses. Stores standard address components, customer name information, and company details.

The address includes geographic coordinates (latitude and longitude). You can format addresses for display using the formatted field with options to include or exclude name and company information.

•String

The first line of the address. Typically the street address or PO Box number.

•String

The second line of the address. Typically the number of the apartment, suite, or unit.

•String

The name of the city, district, village, or town.

•String

The name of the customer's company or organization.

Anchor to coordinatesValidatedcoordinatesValidated
•Boolean!
non-null

Whether the address corresponds to recognized latitude and longitude values.

•String

The name of the country.

•CountryCode

The two-letter code for the country of the address.

For example, US.

•String

The first name of the customer.

•[String!]!
non-null

A formatted version of the address, customized by the provided arguments.

Arguments

•Boolean
Default:false

Whether to include the customer's name in the formatted address.

•Boolean
Default:true

Whether to include the customer's company in the formatted address.


•String

A comma-separated list of the values for city, province, and country.

•ID!
non-null

A globally-unique ID.

•String

The last name of the customer.

•Float

The latitude coordinate of the customer address.

•Float

The longitude coordinate of the customer address.

•String

The full name of the customer, based on firstName and lastName.

•String

A unique phone number for the customer.

•String

The region of the address, such as the province, state, or district.

•String

The alphanumeric code for the region.

For example, ON.

•String

The time zone of the address.

Anchor to validationResultSummaryvalidationResultSummary
•MailingAddressValidationResult

The validation status that is leveraged by the address validation feature in the Shopify Admin. See "Validating addresses in your Shopify admin" for more details.

•String

The zip or postal code of the address.

•String
Deprecated

Was this section helpful?

•mutation

Creates a new MailingAddress for a Customer. You can optionally set the address as the customer's default address.

You can only add addresses to existing customers. Each customer can have multiple addresses.

•mutation

Updates a Customer's MailingAddress. You can modify any field of the address and optionally set it as the customer's default address.


Was this section helpful?

•interface

Was this section helpful?