customerDefaultAddressUpdate - storefront - MUTATION
Version: 2025-01
Description:
Updates the default address of an existing customer.
Access Scopes
`unauthenticated_write_customers` access scope.
Arguments
-
addressId:
ID! -
ID of the address to set as the new default for the customer.
-
customerAccessToken:
String! -
The access token used to identify the customer.
Returns
-
customer:
Customer
The updated customer object.
-
customerUserErrors:
CustomerUserError!
The list of errors that occurred from executing the mutation.
-
userErrors:
UserError!
The list of errors that occurred from executing the mutation.
Examples