customerUpdate documentaion clarification

Currently in the CustomerUpdate mutation - example: updates existing customer address has the following input:

{
  "customerId": "gid://shopify/Customer/1018520244",
  "addresses": [
    {
      "address1": "123 New Street",
      "city": "New City"
    }
  ]
}

this input is similar to the Customer Update mutation - example: creates a new address for a customer

ACTION: I believe that the address object is missing an id field to denote that we are updating an existing address - which should be added.

If you want to update the address of customer, you can use customerUpdateDefaultAddress mutation.

It’s actually customerAddressUpdate, that one is just for default :slight_smile:

1 Like