customerAddressCreate mutation

Creates a new address for a customer.

Required access

unauthenticated_write_customers access scope

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

address ( MailingAddressInput! ) required

The customer mailing address to create.

customerAccessToken ( String! ) required

The access token used to identify the customer.

MailingAddressInput fields

address1 (String)

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

address2 (String)

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

city (String)

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

company (String)

The name of the customer's company or organization.

country (String)

The name of the country.

firstName (String)

The first name of the customer.

lastName (String)

The last name of the customer.

phone (String)

A unique phone number for the customer.

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

province (String)

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

zip (String)

The zip or postal code of the address.

Return fields

customerAddress (MailingAddress)

The new customer address object.

customerUserErrors ([CustomerUserError!]!)

List of errors that occurred executing the mutation.

Deprecated return fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use customerUserErrors instead

Creates a new address for a customer.

Required access

unauthenticated_write_customers access scope

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

address ( MailingAddressInput! ) required

The customer mailing address to create.

customerAccessToken ( String! ) required

The access token used to identify the customer.

MailingAddressInput fields

address1 (String)

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

address2 (String)

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

city (String)

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

company (String)

The name of the customer's company or organization.

country (String)

The name of the country.

firstName (String)

The first name of the customer.

lastName (String)

The last name of the customer.

phone (String)

A unique phone number for the customer.

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

province (String)

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

zip (String)

The zip or postal code of the address.

Return fields

customerAddress (MailingAddress)

The new customer address object.

customerUserErrors ([CustomerUserError!]!)

List of errors that occurred executing the mutation.

Deprecated return fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use customerUserErrors instead

Creates a new address for a customer.

Required access

unauthenticated_write_customers access scope

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

address ( MailingAddressInput! ) required

The customer mailing address to create.

customerAccessToken ( String! ) required

The access token used to identify the customer.

MailingAddressInput fields

address1 (String)

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

address2 (String)

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

city (String)

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

company (String)

The name of the customer's company or organization.

country (String)

The name of the country.

firstName (String)

The first name of the customer.

lastName (String)

The last name of the customer.

phone (String)

A unique phone number for the customer.

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

province (String)

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

zip (String)

The zip or postal code of the address.

Return fields

customerAddress (MailingAddress)

The new customer address object.

customerUserErrors ([CustomerUserError!]!)

List of errors that occurred executing the mutation.

Deprecated return fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use customerUserErrors instead

Sign up for a Partner account to get started.

Sign up