Name
UsageCounts Get the current Usage Counts for your company.
Description
The Usage Counts screen in the user interface allows a user to determine the current and maximum amount of numbers stored on 8MS for any particular day or month as well as all transaction counts for Local Deletes, API calls, Test Calls and all Other transactions.

The UsageCounts API call allows the count information be be retrieved. The details that the Usage Counts screen returns are not available; only counts are available. If no parameters are provided, the current month's data is returned. Additionally, a BillingInfo section is included which shows the maximum values allowed for your company. If any parameters are specified, the BillingInfo section is not included. The following are the allowed fields in reqparams:
startdate The starting date for viewing usage count data. If startdate is specified but enddate is not, enddate defaults to the current date.
enddate The ending date for viewing usage count data. If enddate is specified but startdate is not, enddate is ignored and the current month's data is returned. Note, however, that the BillingInfo section is not included in this case.

MGI Messages
None.
Results
A UsageCounts response is an XML document embedded within the normal API response. A typical XML response will have the following fields.
<msgparams>
<UsageCounts>
<StartDate>01/01/09 12:00A<StartDate>
<EndDate>01/23/09 11:05A<EndDate>
<BillingInfo>
<NumbersAllocation>1000<NumbersAllocation>
<APITransactionsAllocation>5000<APITransactionsAllocation>
<LocalDeleteTransactionsAllocation>500<LocalDeleteTransactionsAllocation>
<TestCallTransactionsAllocation>0<TestCallTransactionsAllocation>
<GUITransactionsAllocation>5000<GUITransactionsAllocation>
<BillingInfo>
<NumbersCurrent>985<NumbersCurrent>
<NumbersMaximum>988<NumbersMaximum>
<TestCalls>0<TestCalls>
<APITransactions>0<APITransactions>
<LocalDeleteTransactions>23<LocalDeleteTransactions>
<GUITransactions>430<GUITransactions>
<UsageCounts>
</msgparams>
Example
The following request parameters will retrieve the usagecounts data between June 1 and July 15, 2008.
startdate~06/01/08;enddate~07/15/08;