The Microsoft Cost Details API is now available for Enterprise Agreements (EA) and Microsoft Customer Agreements (MCA). The API replaces all existing Usage Details APIs and provides data for charges in your invoice, including new commerce products (Microsoft 365, Dynamics 365, Power Platform, etc.) that you may have purchased in addition to Azure. This API is the go-to solution, along with exports, for ingesting the raw cost data needed to build any custom reporting solution.
To learn more about how to call the Cost Details API, please see get small cost datasets on demand.