If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.

I have already try below code but it's not working:

Method - PUT 
Param - { 
"customerId": 3, 
"storeId": 1 
Authorization -"Bearer {user-token}"

Not found any solution yet. if anyone know about this then please help me.

1 Answer 1


To bring some light on it, I think the method you mentioned should work after the fix of https://github.com/magento/magento2/issues/24808.

I created an extension to fix this issue for the Magento version < 2.3.4. https://github.com/troublediehard/plab-cartsmergefix

  • if you check name then, this issue is posted by me :-) Commented Nov 1, 2019 at 4:46
  • Yes, I did. But it will be useful for new people looking for this question. Commented Nov 1, 2019 at 6:47
  • @SangeetaJain I created an extension which uses this fix for the Magento version < 2.3.4 Commented Nov 1, 2019 at 18:07
  • Also, thank you for raising this issue on the GitHub, now we have solution because of your effort. Commented Nov 4, 2019 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.