Summary statistics for SMS messages sent by an account, covering total volume, total cost and delivery success rate. Built from aggregated SmsItem counts and totals for use in reporting and admin views.


Properties

PropertyReturnsDescription
currencyStringThe currency code that getTotalCost is denominated in.
deliveredOklongThe number of messages in this summary that were confirmed delivered.
deliveryRatePercIntegerThe proportion of messages confirmed delivered, as a whole-number percentage of the total.
totallongThe total number of SMS messages counted in this summary.
totalCostlongThe total cost of the messages in this summary, in the currency returned by getCurrency.

Methods

getTotal()

Returns: long

The total number of SMS messages counted in this summary.

getCurrency()

Returns: String

The currency code that getTotalCost is denominated in.

getTotalCost()

Returns: long

The total cost of the messages in this summary, in the currency returned by getCurrency.

getDeliveredOk()

Returns: long

The number of messages in this summary that were confirmed delivered.

getDeliveryRatePerc()

Returns: Integer

The proportion of messages confirmed delivered, as a whole-number percentage of the total.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.