updateCustomerAddressV2
updateCustomerAddressV2 is a Magento 2 GraphQL mutation in the Customer module. Update the billing or shipping address of a customer or guest. It returns CustomerAddress and requires an Authorization header (Bearer customer token).
Last verified: against Magento 2.4.9.
Returns
Resolver class
Magento\CustomerGraphQl\Model\Resolver\UpdateCustomerAddressV2
Arguments
The unique ID of the customer address.
An input object that contains changes to the customer address.
Example request
Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.
Headers
Query
mutation ($uid: ID!) {
updateCustomerAddressV2(uid: $uid) {
id
uid
customer_id
region {
region_code
region
region_id
}
region_id
country_id
country_code
street
company
telephone
fax
postcode
city
firstname
lastname
middlename
prefix
suffix
vat_id
default_shipping
default_billing
custom_attributes {
attribute_code
value
}
custom_attributesV2 {
code
}
extension_attributes {
attribute_code
value
}
}
}Variables
{
"uid": ""
}Related in CustomerGraphQl
Other fields shipped by the same module.
changeCustomerPassword
Change the password for the logged-in customer.
Customer · returns Customer
confirmEmail
Confirms the email address for a customer.
Customer · returns CustomerOutput
createCustomer
DeprecatedCustomer · returns CustomerOutput
createCustomerAddress
Create a billing or shipping address for a customer or guest.
Customer · returns CustomerAddress
createCustomerV2
Create a customer account.
Customer · returns CustomerOutput
customer
Return detailed information about a customer account.
Customer · returns Customer
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.