Skip to main content
object

Represents a customer's mailing address. For example, a customer's default address and an order's billing address are both mailing addresses. Apps using the Customer Account API must meet the protected customer data requirements.

•String

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

•String

The second line of the address. This is typically the apartment, suite, or unit number.

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

•String

The first name of the customer.

•[String!]!

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

Arguments

•Boolean
Default:false

Determines whether to include the customer's name in the formatted address.

•Boolean
Default:true

Determines 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!

A globally-unique ID.

•String

The last name of the customer.

•String

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

•String

The customer's unique phone number.

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

•String

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

•CountryCode

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

For example, US.

•String

The zip or postal code of the address.

•String

The alphanumeric code for the region.

For example, ON.


Was this section helpful?

•mutation

Creates a new address for a customer.

Arguments

•CustomerAddressInput!
required

Specifies the fields to use when creating the address.

•Boolean
Default:false

The flag to set the address as the default address.


Fields

•CustomerAddress

The created customer address.

•[UserErrorsCustomerAddressUserErrors!]!
non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a specific address for a customer.

Arguments

•CustomerAddressInput

Specifies the fields to use when updating the address.

•ID!
required

The ID of the address to be updated.

•Boolean
Default:null

The flag to set the address as the default address.


Fields

•CustomerAddress

The updated address.

•[UserErrorsCustomerAddressUserErrors!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

•interface

Was this section helpful?