When we create cart using storefront api, and if the product is not published on the sales channel, it did not show any error message

Context:
Trying to add some variants to cart
These variants are some fix variants that we add to cart for some use cases.
We add those variants using internal logic.
One of the variant was removed from the sales channel

What happened.
When the code tries to add such variants to cart using cartCreate mutation, it creates the cart id with no items in it,

What should happen.
It should show some error message under userErrors so that it can be determined that the item is not published to sales channel.

HI Chirag,

Thanks for flagging - will connect with the Storefront API team on this!

1 Like