--- title: customerAddressUpdate - GraphQL Admin description: Updates a [`Customer`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer)'s [`MailingAddress`](https://shopify.dev/docs/api/admin-graphql/latest/objects/MailingAddress). You can modify any field of the address and optionally set it as the customer's default address. api_version: 2025-07 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/customeraddressupdate md: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/customeraddressupdate.md --- # customer​Address​Update mutation Requires `write_customers` access scope. Updates a [`Customer`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer)'s [`MailingAddress`](https://shopify.dev/docs/api/admin-graphql/latest/objects/MailingAddress). You can modify any field of the address and optionally set it as the customer's default address. ## Arguments * address [Mailing​Address​Input!](https://shopify.dev/docs/api/admin-graphql/2025-07/input-objects/MailingAddressInput) required Specifies the fields to use when updating the address. * address​Id [ID!](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID) required The ID of the address to update. * customer​Id [ID!](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID) required The ID of the customer whose address is being updated. * set​As​Default [Boolean](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/Boolean) Whether to set the address as the customer's default address. *** ## Customer​Address​Update​Payload returns * address [Mailing​Address](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/MailingAddress) The updated address. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### customerAddressUpdate reference