In this use case, you want to programmatically look at what usages were created in the system.
To read usages,
SELECT Id, AccountId, SourceType, UOM, Quantity, RbeStatus, StartDateTime, EndDateTime, SourceName, SubmissionDateTime FROM Usage WHERE AccountId = 'someAccountId'
Usage[] usages = query("select Id, AccountId, SourceType, UOM, Quantity, RbeStatus, StartDateTime, EndDateTime, SourceName, SubmissionDateTime from Usage where AccountId = 'someAccountId'");
Copyright © 2008-2009 Zuora, Inc.