New Shopify Certification now available: Liquid Storefronts for Theme Developers

Checkout address for a logged customer on Storefront API

12 0 3


I'm using the Storefront API for a full checkout process, and I'm having a problem when updating the checkout address for logged customers.

After using checkoutCustomerAssociateV2, I think I still have to use checkoutShippingAddressUpdateV2, because we receive an error: "Shipping address can't be blank". But this mutation have no field to input an existing address id, so we are just copying the fields and sending to the mutation. The problem is that, after checkout is finished, a new address is being created for the customer, even if it's a duplicated one. This can potentially duplicate an address on each checkout someone finishes.

Does anyone know if there's another way of updating a checkout address, so that it doesn't add the address on the customer?

Replies 0 (0)