Effective Rate Object
This section outlines the Effective Rate object. An effective rate is the current rate the partner has. An effective rate is a combination of a rate plan and the actual instance of assigning that rate plan to the 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 |
---|---|---|
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: |
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"
}
}
Get Effective Rates for Partner
This request returns all currently effective rates for a specific partner.
get | /partners/{partner_sid}/effective_rates |
Sample
A sample GET request to get the partner's effective rates:
curl -X GET \
'https://api.carrierx.com/core/v2/partners/b9Ua99icuAdvDvv2kvlNaPzMLDXwuEYJ/effective_rates' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with a list of Effective Rate objects:
{
"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"
}
}
This request is enabled for Field Filtering.
Required Scopes
To get information about the Effective Rates, the partner must have one of the following scopes enabled:
partners.manage
partners.read
Path Arguments
Parameter | Data Type | Description |
---|---|---|
partner_sid required | string | The secure ID of the partner whose rate plans will be returned. |