if 2 items in cart if customer login both item should need to add cart , Both quote (before login & after login) merge and create final quote which contain all item of customer quote
Refference links that i got in google
apimagento2quoterest
if 2 items in cart if customer login both item should need to add cart , Both quote (before login & after login) merge and create final quote which contain all item of customer quote
Refference links that i got in google
Best Answer
By default, Magento 2 in API side does not provide any API for Merge guest cart with customer card when the customer is login.
But you can replace the guest cart with customer cart.
But if you want to develop functionality Merge cart Live Magento web side you need to create custom API.