--- title: customerAddressUpdate - Storefront API description: Updates the address of an existing customer. api_version: 2024-10 api_name: storefront type: mutation api_type: graphql source_url: html: >- https://shopify.dev/docs/api/storefront/2024-10/mutations/customerAddressUpdate md: >- https://shopify.dev/docs/api/storefront/2024-10/mutations/customerAddressUpdate.txt --- # customer​Address​Update mutation Requires `unauthenticated_write_customers` access scope. Updates the address of an existing customer. ## Arguments * address [Mailing​Address​Input!](https://shopify.dev/docs/api/storefront/2024-10/input-objects/MailingAddressInput) required The customer’s mailing address. * customer​Access​Token [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) required The access token used to identify the customer. * id [ID!](https://shopify.dev/docs/api/storefront/2024-10/scalars/ID) required Specifies the customer address to update. *** ## Customer​Address​Update​Payload returns * customer​Address [Mailing​Address](https://shopify.dev/docs/api/storefront/2024-10/objects/MailingAddress) The customer’s updated mailing address. * customer​User​Errors [\[Customer​User​Error!\]!](https://shopify.dev/docs/api/storefront/2024-10/objects/CustomerUserError) non-null The list of errors that occurred from executing the mutation. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/2024-10/objects/UserError) non-nullDeprecated The list of errors that occurred from executing the mutation. *** ## Examples * ### customerAddressUpdate reference ## Mutation Reference ```graphql mutation customerAddressUpdate($customerAccessToken: String!, $id: ID!, $address: MailingAddressInput!) { customerAddressUpdate(customerAccessToken: $customerAccessToken, id: $id, address: $address) { customerAddress { # MailingAddress fields } customerUserErrors { # CustomerUserError fields } } } ``` ## Input ```json { "customerAccessToken": "", "id": "gid://shopify//10079785100", "address": { "address1": "", "address2": "", "city": "", "company": "", "country": "", "firstName": "", "lastName": "", "phone": "", "province": "", "zip": "" } } ```