The get customer usage method allows retrieval of usage records for the specified customer and date/time.
URL | https://[host].accumulus.com/json/customers/[customerID]/usages |
---|---|
HTTP Method | GET |
Query String Parameters |
from: retrieve entries not newer than this date and time. Required skip: number of records to skip (used for paging). Required take: number of records to take (maximum is 100). Required |
Example
GET https://[host].accumulus.com/json/customers/12045/usages?from=11-10-2010T11:20 &skip=0&take=1
Response Body
{ "Message":"SUCCESS", "TotalItemCount":20, "Usages": [{ "CorrelationKey":"d298ab8d-2b38-4dc7-a6cd-f4982ebf0408", "EndDateTime":null, "Quantity":-0.3434, "StartDateTime":"\/Date(1282981223233-0700)\/", "SubscriptionItemID":null, "UsageKey":"5b3f7dd3-abc7-441a-ad79-3f5be944a995", "UsageTypeCode":"CALL_MINUTES", "UsageTypeName":"Call Minutes" }] }