customerAddressUpdate
Update an existing address in the customer's address book
Arguments
| Argument | Type | Description |
|---|---|---|
addressId | ID! | |
address | AddressInput! |
Returns
CustomerAddressUpdateResponse!
| Field | Type | Description |
|---|---|---|
customer | Customer | Updated customer account information with modified address |
customerErrors | [CustomerAddressUpdateError!] | Error details if address update failed |
Example
mutation { customerAddressUpdate( addressId: "addr-123" address: { givenName: "John" familyName: "Doe" streetName: "Updated Street" streetNumber: "789" city: "Utrecht" postalCode: "3000CC" country: "NL" } ) { customer { id addresses { items { id givenName familyName city } } } customerErrors { ... on ValidationError { message } } }}{ "data": { "customerAddressUpdate": { "customer": { "id": "id-1", "addresses": { "items": [ { "id": "id-1", "givenName": "Example", "familyName": "Example", "city": "Example" } ] } }, "customerErrors": [ { "message": "Example" } ] } }}The query is the example the schema documents. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Resolved |
| @evolve-framework/sfcc | Stub: answers Not implemented |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-account:
CustomerAddressUpdate

