customerUpdateDefaultAddress mutation
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Updates a customer's default address.
Required access
write_customers
access scope.
On this page
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
Argument | Description |
---|---|
addressId
(
ID!
)
required
|
The ID of the address to use as the customer's default address. |
customerId
(
ID!
)
required
|
The ID of the customer whose default address is being updated. |
Return fields
-
customer (
Customer
)The customer whose address was updated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.