Reputation: 2241
Is there any RESTful API to add product to cart in Magento? I know it can be done using SOAP/XML but I am looking for solution using RESTful/JSON.
Thanks in advance
Upvotes: 3
Views: 2189
Reputation: 342
2015 - If you are looking for an answer like me, with Magento 2.0 this is now possible.
http://devdocs.magento.com/swagger/index.html
POST /V1/carts/{cartId}/items
Look for quoteCartItemRepositoryV1. There is a post method to add product to the cart.
Upvotes: 1
Reputation: 8819
right now we can just view the information using RESTful API like retrieve the inventory, orders, products, customers list and information.
Yes, you can extend the functionality of the api to add product to cart.
Upvotes: 0