I have a workflow where I create a customer with two addresses using the Sanity CMS. When I create a new user, both addresses show up for the customer in Shopify. Whenever I try to update the addresses using the customerUpdate mutation, only the addresses where the object has changed, are saved to Shopify.
If I edit one element on both addresses (invoice and delivery), both are saved to Shopify. But if I only edit one of them, the other one is deleted.
I saw this thread, but it seems that the id method is deprecated.