Price object reference

8x8 API uses the following universal object for describing the price across different APIs.

Object structure

Parameter name

Parameter type

Description

total

decimal*

The total price of the message.

perSms

decimal

Price per SMS (for SMS API only).
The total value is equivalent to perSms x smsCount.

currency

string*

Currency code of price information expressed in ISO 4217 format.

Examples of price object:

{
  "price": {
      "total": 0.0375,
      "perSms": 0.0125,
      "currency": "USD"
    }
}
{
  "price": {
      "total": 0.0375,
      "currency": "USD"
    }
}