Skip to content

SMS Pricing

Using this endpoint, you can fetch the current price offerings for your account.

Endpoint

GET
/messages/v1/sms/pricing


POSTMAN

Authentication

AUTHORIZATION: Bearer Token

Request parameters

Parameter Value / Pattern Example(s)
country_iso (optional) The country code in ISO Alpha 2 format AE

Response

1. All country price

Once the request is validated, you will receive a list of prices for all countries

200 - Success
{
    "AL": 0.066,
    "DZ": 0.14,
    "AS": 0.038,
    "AD": 0.072,
    "AI": 0.038,
    "AG": 0.04,
    "AW": 0.049,
    "AU": 0.029,
    "AT": 0.06,
    "BS": 0.04,
    "BH": 0.0175,
    "BB": 0.11,
    "BY": 0.13,
    "BE": 0.089,
    "BZ": 0.089,
    "BJ": 0.065,
    "BM": 0.038,
    "BT": 0.07,
    "BO": 0.078,
    "BQ": 0.045,
    "BA": 0.04,
    "BW": 0.028,
    "BR": 0.017,
    "BN": 0.0175,
    "BG": 0.083,
    "BF": 0.045,
    "BI": 0.077,
    "KH": 0.092,
    "CM": 0.054,
    "CV": 0.045,
    "KY": 0.04,
    "CF": 0.0195,
    "TD": 0.0815,
    "CL": 0.046,
    "CN": 0.022,
    "CO": 0.005,
    "KM": 0.025,
    "CR": 0.035,
    "HR": 0.058,
    "CU": 0.07,
    "CW": 0.1,
    "CY": 0.02,
    "CZ": 0.048,
    "CD": 0.094,
    "DK": 0.039,
    "DM": 0.032,
    "DO": 0.038,
    "TL": 0.08,
    "EC": 0.083,
    "EG": 0.065,
    "SV": 0.035,
    "GQ": 0.039,
    "ER": 0.041,
    "EE": 0.05,
    "ET": 0.08,
    "FO": 0.015,
    "FI": 0.065,
    "FR": 0.045,
    "GF": 0.03,
    "PF": 0.076,
    "GA": 0.082,
    "GM": 0.029,
    "GE": 0.0918,
    "DE": 0.072,
    "GI": 0.025,
    "GR": 0.052,
    "GL": 0.019,
    "GD": 0.03,
    "GP": 0.088,
    "GU": 0.0668,
    "GT": 0.025,
    "GN": 0.0801,
    "GW": 0.085,
    "GY": 0.044,
    "HT": 0.11,
    "HU": 0.068,
    "IS": 0.0488,
    "AO": 0.058,
    "DJ": 0.07,
    "HN": 0.069,
    "AR": 0.069,
    "BD": 0.184,
    "GH": 0.2,
    "IN": 0.04,
    "AM": 0.11,
    "AZ": 0.22,
    "FJ": 0.11,
    "AF": 0.159,
    "HK": 0.044,
    "CA": 0.02,
    "ID": 0.16,
    "IR": 0.105,
    "IQ": 0.106,
    "IL": 0.012,
    "IT": 0.048,
    "CI": 0.052,
    "JM": 0.112,
    "JP": 0.077,
    "JO": 0.11,
    "KE": 0.0835,
    "KI": 0.042,
    "XK": 0.07,
    "KW": 0.13,
    "LA": 0.0366,
    "LV": 0.034,
    "LS": 0.027,
    "LR": 0.04,
    "LY": 0.152,
    "LI": 0.025,
    "LT": 0.019,
    "LU": 0.0732,
    "MO": 0.036,
    "MK": 0.038,
    "MG": 0.0602,
    "MW": 0.0835,
    "MY": 0.058,
    "MV": 0.0255,
    "ML": 0.088,
    "MT": 0.0481,
    "MH": 0.112,
    "MQ": 0.11,
    "MR": 0.088,
    "MU": 0.0611,
    "YT": 0.18,
    "MX": 0.035,
    "FM": 0.013,
    "MD": 0.042,
    "MC": 0.075,
    "MN": 0.084,
    "MS": 0.028,
    "MA": 0.073,
    "MZ": 0.0575,
    "MM": 0.0895,
    "NA": 0.039,
    "NR": 0.068,
    "NP": 0.069,
    "NL": 0.089,
    "NC": 0.12,
    "NZ": 0.09,
    "NI": 0.037,
    "NE": 0.099,
    "NG": 0.125,
    "MP": 0.066,
    "NO": 0.06,
    "PW": 0.05,
    "PA": 0.0349,
    "PG": 0.039,
    "PY": 0.015,
    "PE": 0.039,
    "PL": 0.029,
    "PT": 0.028,
    "PR": 0.0627,
    "QA": 0.03,
    "CG": 0.032,
    "RE": 0.068,
    "RO": 0.04,
    "RW": 0.09,
    "KN": 0.0721,
    "LC": 0.0175,
    "PM": 0.0935,
    "VC": 0.0267,
    "WS": 0.041,
    "SM": 0.076,
    "ST": 0.083,
    "SA": 0.067,
    "SN": 0.0721,
    "RS": 0.026,
    "SC": 0.0371,
    "SL": 0.055,
    "SG": 0.0314,
    "SX": 0.045,
    "SK": 0.059,
    "SB": 0.025,
    "SO": 0.079,
    "ZA": 0.016,
    "KR": 0.037,
    "PH": 0.11,
    "KZ": 0.13,
    "KG": 0.14,
    "ME": 0.072,
    "RU": 0.024,
    "LB": 0.09,
    "PS": 0.25,
    "PK": 0.15,
    "IE": 0.045,
    "SS": 0.055,
    "ES": 0.055,
    "LK": 0.0935,
    "SD": 0.11,
    "SR": 0.0409,
    "SZ": 0.063,
    "SE": 0.049,
    "CH": 0.06,
    "SY": 0.17,
    "TW": 0.05,
    "TZ": 0.091,
    "TH": 0.013,
    "TG": 0.045,
    "TO": 0.042,
    "TT": 0.0288,
    "TR": 0.024,
    "TC": 0.043,
    "UG": 0.106,
    "UA": 0.16,
    "AE": 0.017,
    "GB": 0.034,
    "US": 0.0073,
    "UY": 0.0558,
    "VU": 0.0534,
    "VE": 0.047,
    "VN": 0.079,
    "VG": 0.049,
    "VI": 0.02,
    "YE": 0.07,
    "ZM": 0.0598,
    "ZW": 0.019,
    "TN": 0.14,
    "OM": 0.062,
    "TJ": 0.19,
    "TM": 0.099,
    "UZ": 0.2,
    "SI": 0.106
}
401 - Unauthorized
{
    "detail": {
        "code": "ACCESS_TOKEN_SIGNATURE_VERIFICATION_FAILED",
        "message": "It looks like your requests were failed due to a missing or invalid 'Access Token'. Sign up at https://app.d7networks.com and create an authentication token in the developer section."
    }
}

2. Single country price

Once the request is validated, you will receive the price for selected country.

200 - Success
{
    "AE": 0.017
}
401 - Unauthorized
{
    "detail": {
        "code": "ACCESS_TOKEN_SIGNATURE_VERIFICATION_FAILED",
        "message": "It looks like your requests were failed due to a missing or invalid 'Access Token'. Sign up at https://app.d7networks.com and create an authentication token in the developer section."
    }
}

Programming Examples

1. All country price

curl --location --request GET 'https://api.d7networks.com/messages/v1/sms/pricing' \
--header 'Authorization: Bearer {{api_access_token}}'
var axios = require('axios');

var config = {
method: 'get',
url: 'https://api.d7networks.com/messages/v1/sms/pricing',
headers: { 
    'Authorization': 'Bearer {{api_access_token}}'
}
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests

url = "https://api.d7networks.com/messages/v1/sms/pricing"

payload={}
headers = {
'Authorization': 'Bearer {{api_access_token}}'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.d7networks.com/messages/v1/sms/pricing',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{api_access_token}}'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
package main

import (
"fmt"
"net/http"
"io/ioutil"
)

func main() {

url := "https://api.d7networks.com/messages/v1/sms/pricing"
method := "GET"

client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)

if err != nil {
    fmt.Println(err)
    return
}
req.Header.Add("Authorization", "Bearer {{api_access_token}}")

res, err := client.Do(req)
if err != nil {
    fmt.Println(err)
    return
}
defer res.Body.Close()

body, err := ioutil.ReadAll(res.Body)
if err != nil {
    fmt.Println(err)
    return
}
fmt.Println(string(body))
}    
1
2
3
4
5
6
7
8
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api.d7networks.com/messages/v1/sms/pricing")
.method("GET", null)
.addHeader("Authorization", "Bearer {{api_access_token}}")
.build();
Response response = client.newCall(request).execute();
var headers = {
'Authorization': 'Bearer {{api_access_token}}'
};
var request = http.Request('GET', Uri.parse('https://api.d7networks.com/messages/v1/sms/pricing'));

request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}
1
2
3
4
5
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Bearer {{api_access_token}}")

$response = Invoke-RestMethod 'https://api.d7networks.com/messages/v1/sms/pricing' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
require "uri"
require "net/http"

url = URI("https://api.d7networks.com/messages/v1/sms/pricing")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer {{api_access_token}}"

response = https.request(request)
puts response.read_body

2. Single country price

curl --location --request GET 'https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE' \
--header 'Authorization: Bearer {{api_access_token}}'
var axios = require('axios');

var config = {
method: 'get',
url: 'https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE',
headers: { 
    'Authorization': 'Bearer {{api_access_token}}'
}
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests

url = "https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE"

payload={}
headers = {
'Authorization': 'Bearer {{api_access_token}}'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{api_access_token}}'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
package main

import (
"fmt"
"net/http"
"io/ioutil"
)

func main() {

url := "https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE"
method := "GET"

client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)

if err != nil {
    fmt.Println(err)
    return
}
req.Header.Add("Authorization", "Bearer {{api_access_token}}")

res, err := client.Do(req)
if err != nil {
    fmt.Println(err)
    return
}
defer res.Body.Close()

body, err := ioutil.ReadAll(res.Body)
if err != nil {
    fmt.Println(err)
    return
}
fmt.Println(string(body))
}    
1
2
3
4
5
6
7
8
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api.d7networks.com/messages/v1/sms/pricing")
.method("GET", null)
.addHeader("Authorization", "Bearer {{api_access_token}}")
.build();
Response response = client.newCall(request).execute();
var headers = {
'Authorization': 'Bearer {{api_access_token}}'
};
var request = http.Request('GET', Uri.parse('https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE'));

request.headers.addAll(headers);

http.StreamedResponse response = await request.send();

if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}
1
2
3
4
5
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Bearer {{api_access_token}}")

$response = Invoke-RestMethod 'https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
require "uri"
require "net/http"

url = URI("https://api.d7networks.com/messages/v1/sms/pricing?country_iso=AE")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer {{api_access_token}}"

response = https.request(request)
puts response.read_body