Using Magento 2.2, I need to add the
simple and configuration products into the basket by REST API.
On the stack, I saw someone use
cart and other use
What the correct solution for add items?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
The cart is mostly used for frontend web application but actually in the background, Magento playing with a quote(means managing quote) when customer adding the products to the cart.
Magento quote handling Simple products as a single item while for the configurable product there are two items adding into the cart first is configurable or parent product and second is its simple or child product.
In the rest API, we need to create quote first and then add products in that quote via custom code.
Still, you have doubts please let me know.