--- title: customerDefaultAddressUpdate - Storefront API description: Updates the default address of an existing customer. api_version: 2025-10 api_name: storefront type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/mutations/customerDefaultAddressUpdate md: https://shopify.dev/docs/api/storefront/latest/mutations/customerDefaultAddressUpdate.md --- # customer​Default​Address​Update mutation Requires `unauthenticated_write_customers` access scope. Updates the default address of an existing customer. ## Arguments * address​Id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) required ID of the address to set as the new default for the customer. * customer​Access​Token [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String) required The access token used to identify the customer. *** ## Customer​Default​Address​Update​Payload returns * customer [Customer](https://shopify.dev/docs/api/storefront/latest/objects/Customer) The updated customer object. * customer​User​Errors [\[Customer​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CustomerUserError) non-null The list of errors that occurred from executing the mutation. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/UserError) non-nullDeprecated The list of errors that occurred from executing the mutation. *** ## Examples * ### customerDefaultAddressUpdate reference ## Mutation Reference ```graphql mutation customerDefaultAddressUpdate($customerAccessToken: String!, $addressId: ID!) { customerDefaultAddressUpdate(customerAccessToken: $customerAccessToken, addressId: $addressId) { customer { # Customer fields } customerUserErrors { # CustomerUserError fields } } } ``` ## Input ```json { "customerAccessToken": "", "addressId": "gid://shopify//10079785100" } ```