Skip to main content

Price object reference

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

Object structure

Parameter nameParameter typeDescription
totaldecimal*The total price of the message.
perSmsdecimalPrice per SMS (for SMS API only).
The total value is equivalent to perSms x smsCount.
currencystring*Currency code of price information expressed in ISO 4217 format.

🚧

Please note that the Price object is optional and might not be included in the Delivery Receipts callback. When a message was not sent successfully, you will still receive Delivery Receipts with Failed/Undelivered status without incurring any charges. Hence, the price information is not available for the Delivery Receipts.

Examples of price object: SMS PriceChatApps Price

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

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