Skip to main content
object

Represents a mailing address for customers and shipping.

•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.

•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.

Formatted using E.164 standard. For example, +16135551111.

•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 zip or postal code of the address.

•String
Deprecated

Was this section helpful?

•mutation

Creates a new address for a customer.

Arguments

•MailingAddressInput!
required

The customer mailing address to create.

•String!
required

The access token used to identify the customer.


Fields

•MailingAddress

The new customer address object.

•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated
•mutation

Updates the address of an existing customer.

Arguments

•MailingAddressInput!
required

The customer’s mailing address.

•String!
required

The access token used to identify the customer.

•ID!
required

Specifies the customer address to update.


Fields

•MailingAddress

The customer’s updated mailing address.

•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated

Was this section helpful?

•interface

Was this section helpful?