Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi,
In the Storefront API's, cartCreate and cartBuyerIdentityUpdate mutations, we can pass in a customer's addresses through the buyerIdentity's deliveryAddressPreferences parameter.
Each DeliveryAddressInput has 2 arguments - `customerAddressId` and `deliveryAddress`. I'm confused about the use of these 2 parameters.
Variable $input of type CartInput was provided invalid value for buyerIdentity.deliveryAddressPreferences.0.customerAddressId (Field is not defined on DeliveryAddressInput)
I'm unable to figure this out. Any guidance is appreciated.
Thank you.
Hi, you should not use these two values at the same time. Just choose one.
Oh okay. Thanks for clarifying it. I wish the documentation was more clear on this.