Skip to content

customerAddressUpdate

Mutationin Customer

Update an existing address in the customer's address book

Arguments

ArgumentTypeDescription
addressIdID!
addressAddressInput!

Returns

CustomerAddressUpdateResponse!

FieldTypeDescription
customerCustomerUpdated 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
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: