RatePlan Resource
To avoid ambiguity throughout this page, Sim (initial cap) refers to the Sim API resource. SIM (all caps) refers to the physical Subscriber Identity Module (that is, a SIM card) associated with a Sim resource.
A Rate Plan determines the capabilities and restrictions of each and every Sim instance associated with it.
https://wireless.twilio.com/v1/RatePlans
Any number of Sim's can be assigned to the same Rate Plan. Each of those Sim's inherits the same capabilities and restrictions, such as whether or not each SIM can use data or SMS via Commands, how much data each SIM can use each month, and how usage will be billed. To change a SIM's capabilities and restrictions, it's Sim must be assigned to a different Rate Plan.
A Rate Plan instance can be referenced in the API either by its unique Sid
or user-defined UniqueName
.
https://wireless.twilio.com/v1/RatePlans/{Sid}
https://wireless.twilio.com/v1/RatePlans/{UniqueName}
RatePlan properties
Resource Properties in REST API format | |
---|---|
sid
|
The unique string that we created to identify the RatePlan resource. |
unique_name
|
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's |
account_sid
|
The SID of the Account that created the RatePlan resource. |
friendly_name
|
The string that you assigned to describe the resource. |
data_enabled
|
Whether SIMs can use GPRS/3G/4G/LTE data connectivity. |
data_metering
|
The model used to meter data usage. Can be: |
data_limit
|
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. |
messaging_enabled
|
Whether SIMs can make, send, and receive SMS using Commands. |
voice_enabled
|
Deprecated. Whether SIMs can make and receive voice calls. |
national_roaming_enabled
|
Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See national roaming. |
national_roaming_data_limit
|
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. |
international_roaming
|
The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: |
international_roaming_data_limit
|
The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. |
date_created
|
The date and time in GMT when the resource was created specified in ISO 8601 format. |
date_updated
|
The date and time in GMT when the resource was last updated specified in ISO 8601 format. |
url
|
The absolute URL of the resource. |
PAYG vs Quota Data Plans
Quota Data Plans offer you a self-serve way to receive discounted data pricing in exchange for committing to a minimum dollar spend for each active SIM using the Rate Plan.
For low usage devices, the “Pay as you go” (PAYG) Data Plan is available. With PAYG data, you'll only pay for the data you consume, with no minimum data spend per SIM per month.
For higher usage devices, it is probably more cost effective to use a Quota-based Data Plan. With a Quota-based plan, you agree to a minimum data spend, or "Quota" level per SIM per month. In return, you will receive discount rates in every country, with more significant discounts for higher Quotas.
Even on a Quota plan, data is still priced per megabyte and metered at byte-level. But at the end of your SIM's billing month, you either pay for exactly what you consumed, or the Quota price, whichever is higher.
See Pricing for more information.
Data limits
Each SIM’s usage is measured independently. Data Limits specified by the Rate Plan are on a per SIM basis. For example, if a Rate Plan specifies a Data Limit of 5MB, every SIM on that Rate Plan will be allowed to consume 5MB of data.
National roaming
National roaming grants a SIM the ability to roam onto other carrier networks in the United States in certain low coverage situations. This will allow a SIM to roam onto regional US networks like GCI in Alaska. The SIM will prioritize T-Mobile USA, the 'home' network, when coverage is available.
National roaming pricing is different to standard data and Commands pricing. Before enabling national roaming on your Rate Plan, it is recommended to review the pricing.
Create a RatePlan resource
https://wireless.twilio.com/v1/RatePlans
Parameters
Parameters in REST API format | |
---|---|
unique_name
Optional
|
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's |
friendly_name
Optional
|
A descriptive string that you create to describe the resource. It does not have to be unique. |
data_enabled
Optional
|
Whether SIMs can use GPRS/3G/4G/LTE data connectivity. |
data_limit
Optional
|
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is |
data_metering
Optional
|
The model used to meter data usage. Can be: |
messaging_enabled
Optional
|
Whether SIMs can make, send, and receive SMS using Commands. |
voice_enabled
Optional
|
Deprecated. |
national_roaming_enabled
Optional
|
Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See national roaming. |
international_roaming
Optional
|
The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: |
national_roaming_data_limit
Optional
|
The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See national roaming for more info. |
international_roaming_data_limit
Optional
|
The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. |
Example 1
Fetch a RatePlan resource
https://wireless.twilio.com/v1/RatePlans/{Sid}
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The SID of the RatePlan resource to fetch. |
Example 1
Read Rate Plans
https://wireless.twilio.com/v1/RatePlans
Example 1
Update a RatePlan resource
https://wireless.twilio.com/v1/RatePlans/{Sid}
The only fields that can be updated on a Rate Plan after it has been created is its Unique Name and Friendly Name. If you need to alter your SIM’s capabilities you must create a new Rate Plan and reassign the Sim to the new Rate Plan.
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The SID of the RatePlan resource to update. |
unique_name
Optional
|
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's |
friendly_name
Optional
|
A descriptive string that you create to describe the resource. It does not have to be unique. |
Example 1
Delete a RatePlan resource
https://wireless.twilio.com/v1/RatePlans/{Sid}
You cannot delete a Rate Plan if there are any Sims assigned to it that have active
or ready
statuses.
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The SID of the RatePlan resource to delete. |
Example 1
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.