Thank you for using Sitefinity.
The cart API is based on the OrdersManager. You need to initialze an instance of an orders manager and then you can access methods such as GetCart() and GetCartDetails() which will query the database for the cart.
var om = OrdersManager.GetManager();
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items