Getting the correct returned response are important when using the REST-API so providing the option to return the whole cart without the need to call it again is also important.
Now when you add an item to the cart, update item quantity, remove item or restore an item. You can now return the whole cart contents rather than the default response if requested.
For e.g. by default when adding an item to cart, only that item would return it’s details. So before that happens if the return cart parameter is used, the whole of the cart is instead returned with that added item.
Pretty sweat right!
I’m sure developers will find this useful. What do you think of this improvement coming?
Version 2 is still in development so please come back for more news as it develops.
The best and only REST API for the frontend of WooCommerce. Build your headless store today and join a fast growing community of developers to help you out.