Skip to main content

SMS Rate Object

SMS Rate Object Attributes

AttributeData TypeDescription
country_code
read only

string

The ISO 3166-1 alpha-3 three-letter country code of this rate.

country_name
read only

string

The common name of the country of this rate.

mcc
read only

integer

Mobile country code for this rate.

mnc
read only

integer

Mobile network code for this rate.

network
read only

string

The name of the network used for this rate.

operator
read only

string

The name of the operator used for this rate.

price
read only

number

The price in US dollars used for this rate.

Sample SMS Rate object

{
"country_code": "CZE",
"country_name": "Czech Republic",
"mcc": 230,
"mnc": 4,
"network": null,
"operator": null,
"price": "0.08533"
}

Get Outbound SMS Rates

This request returns a list of outbound SMS rates for a partner.

get /sms/rates/outbound/{sub_type}

Sample

A sample GET request to get outbound SMS rates for the selected subtype for a partner:

curl -X GET \
'https://api.carrierx.com/core/v2/sms/rates/outbound/toll?limit=1' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

200 status code with a list of outbound SMS rates for a partner:

{
"active": "yes",
"count": 1,
"effective_date": "2023-10-20T00:00:00.000Z",
"has_more": true,
"items": [
{
"country_code": "CZE",
"country_name": "Czech Republic",
"mcc": 230,
"mnc": 4,
"network": null,
"operator": null,
"price": "0.08533"
}
],
"limit": 1,
"offset": 0,
"pagination": {
"next": "https://api.carrierx.com/core/v2/sms/rates/outbound/toll?limit=1&offset=1"
},
"partner_sid": "e00430c3-a7d0-4666-ab5c-f7202448382f",
"rates_plan": {
"name": "sms_retail_rates-2023-10-20",
"rates_plan_sid": "832d7042-2f40-4a5a-b508-ff4d2a988d7a"
},
"total": 1778
}

This request is enabled for Pagination, Result Filtering, and Field Filtering.

Required Scopes

To get information about outbound SMS rates, the partner must have one of the following scopes enabled:

  • sms.manage
  • sms.read

Path Arguments

ParameterData TypeDescription
sub_type requiredstringThe message rate assignment subtype. Values accepted in this field are:
  • short_code
  • toll
  • toll_free

Download CSV with Outbound SMS Rates

This request returns a list of outbound rates for a partner in the CSV format.

get /sms/rates/outbound/{sub_type}/csv

Sample

A sample GET request to get outbound SMS rates for the selected subtype for a partner in the CSV format:

curl -X GET \
'https://api.carrierx.com/core/v2/sms/rates/outbound/toll/csv' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

200 status code and a CSV download.

This request is enabled for Result Filtering and Field Filtering.

Required Scopes

To get a list of outbound SMS rates for a partner in the CSV format the partner must have one of the following scopes enabled:

  • sms.manage
  • sms.read

Path Arguments

ParameterData TypeDescription
sub_type requiredstringThe message rate assignment subtype. Values accepted in this field are:
  • short_code
  • toll
  • toll_free