Selected shipping option now matches the available options in createCheckout
We are beginning to roll out a fix for a bug in the Storefront GraphQL API where createCheckout could select a shipping option that wasn’t in the consignment’s availableShippingOptions. You may notice this take effect over the coming weeks.
- Affected requests:
createCheckoutmutations that setselectRecommendedOption: trueorshippingOptionSelectionStrategyon a shipping consignment, for stores whose shipping rates depend on the cart’s discounts, order total, or product dimensions. This includes carrier-calculated rates. - Selected option is one of the available options: the shipping option is selected using the same prices, discounts, and product dimensions as the returned
availableShippingOptions, soselectedShippingOptionmatches one of them and the consignment’sshippingCostmatches that option’s price. - No request changes: you don’t need to change your
createCheckoutrequests.
For details, see the createCheckout mutation reference.