--- title: customerAddressUpdate - GraphQL Admin description: Update a customer's address information. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerAddressUpdate md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerAddressUpdate.md --- # customer​Address​Update mutation Requires `write_customers` access scope. Update a customer's address information. ## Arguments * address [Mailing​Address​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/MailingAddressInput) required Specifies the fields to use when updating the address. * address​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the address to update. * customer​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the customer whose address is being updated. * set​As​Default [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/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/latest/objects/MailingAddress) The updated address. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### customerAddressUpdate reference ## Mutation Reference ```graphql mutation customerAddressUpdate($customerId: ID!, $addressId: ID!, $address: MailingAddressInput!, $setAsDefault: Boolean) { customerAddressUpdate(customerId: $customerId, addressId: $addressId, address: $address, setAsDefault: $setAsDefault) { address { # MailingAddress fields } userErrors { field message } } } ``` ## Input ```json { "customerId": "gid://shopify//10079785100", "addressId": "gid://shopify//10079785100", "address": { "address1": "", "address2": "", "city": "", "company": "", "countryCode": "AF", "firstName": "", "lastName": "", "phone": "", "provinceCode": "", "zip": "" }, "setAsDefault": true } ``` ##### Variables ``` { "customerId": "gid://shopify//10079785100", "addressId": "gid://shopify//10079785100", "address": { "address1": "", "address2": "", "city": "", "company": "", "countryCode": "AF", "firstName": "", "lastName": "", "phone": "", "provinceCode": "", "zip": "" }, "setAsDefault": true } ``` ##### Schema ``` input MailingAddressInput { address1: String address2: String city: String company: String countryCode: CountryCode firstName: String lastName: String phone: String provinceCode: String zip: String } ```