How to track Add To Cart & Remove From Cart using HTTP API

Hi,
I was going through tracking documentation “Tracking HTTP API” (Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3),
There I was able to see ‘Ecommerce’ section to track cart and order detail.

But nowhere it is mentioned how it handles individual Cart Update (Add To Cart, Remove From Cart & Update Quantity) events.

Does just adding the ‘Ecommerce’ tag handles showing all Cart Updates in Reports?
If not, is there any other way to track Cart updates?

Or do I need to use ‘Event Tracking’ parameters to handle it?
(like, e_c = ‘Ecommerce’, e_a=‘Add To Cart’, e_n=‘SKU ID’, e_v=[item cost]
if it’s right, problem is I can not manage quantity here…)

Did you solve it? I have the same question.

Thanks for the request, created an issue to request this new doc in Document How to track Add To Cart & Remove From Cart using HTTP API · Issue #15449 · matomo-org/matomo · GitHub

Check out https://github.com/matomo-org/matomo/blob/0c0cda10f5b6836b4a7e83d86ebbc4c95eccea87/js/piwik.js. You can search for the JS methods listed here https://developer.matomo.org/guides/tracking-javascript-guide. It looks like the clearEcommerceCart method sends the request with an empty set of items or without the ec_items parameter.