Effective Rate Object
The Effective Rate object represents the current rate plan applied to a partner. It links a rate plan with its corresponding assignment record, which defines when and how that plan becomes active. An effective rate always reflects the partner's currently applicable pricing for a given service direction (inbound, outbound, etc.).
Each effective rate object includes:
- The Rate Assignment object, which specifies when and how the plan is applied.
- The Rate Plan object, which defines the details of the rate plan itself.
- The optional inherited field, indicating whether the plan is inherited from a parent partner.
Effective Rate Object Attributes
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 |
|---|---|---|
| assignment read only | object | Information about the rate assignment used to assign this rate plan to the partner. Every time a rate plan is assigned, a rate assignment record is created. Values returned in this field are:
|
| plan read only | object | Information about the rate plan associated with this rate assignment. Values returned in this field are:
|
Rate Assignment Object
The Rate Assignment object describes the relationship between a partner and a rate plan. Each time a plan is assigned, a new rate assignment record is created, defining the effective date, direction, and applicable endpoints. This object determines when the plan becomes active and what traffic or events it applies to.
Rate assignments can be of several types (voip, pstn, sms, etc.) and may include subtype details depending on the communication medium.
This object is typically used within the assignment field of the Effective Rate object.
| Attribute | Data Type | Description |
|---|---|---|
| active read only | string | Whether this rate assignment is currently active or not. Values returned in this field are |
| assignment_sid read only | string | The rate assignment secure ID. |
| direction read only | string | The rate plan direction. Values returned in this field are:
|
| effective_date read only | string | The date and time when the rate plan goes into effect. |
| endpoint_sid read only | string | The secure ID of the endpoint for which this rate plan is effective. This field contains a value only if the rate assignment is of the |
| partner_sid read only | string | The secure ID of the partner with which this rate assignment is associated. |
| plan read only | object | Information about the rate plan associated with this rate assignment. Values returned in this field are:
|
| plan_name read only | string | The rate plan name. |
| plan_sid read only | string | The rate plan secure ID. |
| sub_type read only | string | The rate assignment subtype that this rate plan affects.
|
| type read only | string | The rate assignment type. Values returned in this field are: |
Rate Plan Object
The Rate Plan object defines the pricing structure for specific types of billable activities — such as voice calls, messaging, or DID tiers. Each plan includes identifying metadata (name, secure ID, owner ID, creation date) and a type that indicates what services or events it covers.
Rate plans are reusable configurations that can be assigned to multiple partners via Rate Assignment objects. They serve as the source data for computing charges associated with communication activities.
The Rate Plan object appears in two contexts:
- As a standalone object (e.g., when listing available plans).
- Nested within the Effective Rate object (via the
planattribute).
| Attribute | Data Type | Description |
|---|---|---|
| date_created read only | string | The date and time when the rate plan was created. |
| name read only | string | The rate plan file name. |
| owner_sid read only | string | The secure ID of the partner to whom the rate plan belongs. |
| plan_sid read only | string | The rate plan secure ID. |
| type read only | string | The rate plan type. Values returned in this field are:
|
Sample Effective Rate Object
{
"assignment": {
"active": "yes",
"assignment_sid": "2aa25903-6312-4c4f-9ea6-bbc7a060e142",
"direction": "inbound",
"effective_date": "2023-10-03T00:00:00.000Z",
"endpoint_sid": null,
"partner_sid": "b9Ua99icuAdvDvv2kvlNaPzMLDXwuEYJ",
"plan_name": "voice_inbound_rates-2023-10-15",
"plan_sid": "6ab7df5d-7603-4d1b-8f5e-223b7dee0c6d",
"sub_type": null,
"type": "pstn"
},
"plan": {
"date_created": "2023-10-19T14:33:07.000Z",
"name": "voice_inbound_rates-2023-10-15",
"owner_sid": "b9Ua99icuAdvDvv2kvlNaPzMLDXwuEYJ",
"plan_sid": "6ab7df5d-7603-4d1b-8f5e-223b7dee0c6d",
"type": "phonenumber"
}
}