Rating Call Response Object
The Rating Call Response object represents the calculated pricing result for a specific call.
It provides key billing information, including:
- The direction of the call (inbound or outbound),
- The billed duration,
- The applied rate, and
- The total price charged for the call.
This object is typically returned in response to a rate lookup request made via the Rating API for voice calls.
Rating Call Response Object
The fields listed in the table below will be returned in a JSON object when a successful request has been made.
| Attribute | Data Type | Description |
|---|---|---|
| direction read only | string | The direction of the call. Values accepted in this field are:
|
| duration_billing read only | number | The duration of the call in seconds used for billing. |
| price read only | number | The total price of the call. |
| rate read only | number | The call rate used to calculate the call total price. |
Sample Rating Call Response Object
{
"direction": "outbound",
"duration_billing": "60",
"price": "0.01400",
"rate": "0.01400"
}