Greetings,
We are a sales channel using the checkout API. Recently we had a scenario, where we attempted to create a checkout with an OOS item and received a 422 HTTP response. The error message in the response just stated that there was invalid input, which wasn’t terribly helpful in understanding where we erred. It would be awesome if we could get similar message to other APIs, which could indicate the field that is incorrect.
One way I’ve thought of to mitigate this is to add each line item to the cart one at a time, and handle errors on our side appropriately. However, this does increase the number of requests to the Shopify backend. Please let me know if there’s another preferred way to handle OOS items being added to a checkout.
Thanks!