Pricing API

Versión 1

The API to retrieve pricing information. Please note the Pricing API is rate limited to one request per second.

Descargar la especificación OpenAPI

Retrieve outbound pricing for a specific country.

Retrieves the pricing information based on the specified country.

gethttps://rest.nexmo.com/account/get-pricing/outbound/:type

Ruta Parámetros

type
string
Requerido

The type of service you wish to retrieve data about: either sms, sms-transit or voice.

Consulta Parámetros

api_key
string

Your Nexmo API key.

api_secret
string

Your Nexmo API secret.

country
string

A two letter country code. For example, CA.

Respuestas
Tipo de contenido
application/json

Pricing information for a specific country.

countryCode
string
ejemploCA

Two letter country code.

countryName
string
ejemploCanada

Readable country name.

countryDisplayName
string
ejemploCanada

Readable country name.

currency
string
ejemploEUR

The currency that your account is being billed in (by default Euros—EUR).

defaultPrice
string
ejemplo0.00620000

The default price.

dialingPrefix
string
ejemplo1

The dialling prefix.

networks
array

An array of network objects

type
string
ejemplomobile

The type of network: mobile or landline.

price
string
ejemplo0.00590000

The cost to send a message or make a call to this network

currency
string
ejemploEUR

The currency used for prices for this network.

mcc
string
ejemplo302

The Mobile Country Code of the operator.

mnc
string
ejemplo530

The Mobile Network Code of the operator.

networkCode
string
ejemplo302530

The Mobile Country Code and Mobile Network Code combined to give a unique reference for the operator.

networkName
string
ejemploKeewaytinook Okimakanak

The company/organisational name of the operator.

Ejemplo Respuesta

{
   "countryCode": "CA",
   "countryName": "Canada",
   "countryDisplayName": "Canada",
   "currency": "EUR",
   "defaultPrice": "0.00620000",
   "dialingPrefix": "1",
   "networks": [
      {
         "type": "mobile",
         "price": "0.00590000",
         "currency": "EUR",
         "mcc": "302",
         "mnc": "530",
         "networkCode": "302530",
         "networkName": "Keewaytinook Okimakanak"
      }
   ]
}

Retrieve outbound pricing for all countries.

Retrieves the pricing information for all countries.

gethttps://rest.nexmo.com/account/get-full-pricing/outbound/:type

Ruta Parámetros

type
string
Requerido

The type of service you wish to retrieve data about: either sms, sms-transit or voice.

Consulta Parámetros

api_key
string

Your Nexmo API key.

api_secret
string

Your Nexmo API secret.

Respuestas
Tipo de contenido
application/json

Pricing response

count
string
ejemplo243

The number of countries retrieved.

countries
array

A list of countries.

countryName
string
ejemploCanada

Readable country name.

countryDisplayName
string
ejemploCanada

Readable country name.

currency
string
ejemploEUR

The currency that your account is being billed in (by default Euros—EUR).

defaultPrice
string
ejemplo0.00620000

The default price.

dialingPrefix
string
ejemplo1

The dialling prefix.

networks
array

An array of network objects

type
string
ejemplomobile

The type of network: mobile or landline.

price
string
ejemplo0.00590000

The cost to send a message or make a call to this network

currency
string
ejemploEUR

The currency used for prices for this network.

mcc
string
ejemplo302

The Mobile Country Code of the operator.

mnc
string
ejemplo530

The Mobile Network Code of the operator.

networkCode
string
ejemplo302530

The Mobile Country Code and Mobile Network Code combined to give a unique reference for the operator.

networkName
string
ejemploKeewaytinook Okimakanak

The company/organisational name of the operator.

Ejemplo Respuesta

{
   "count": "243",
   "countries": [
      {
         "countryName": "Canada",
         "countryDisplayName": "Canada",
         "currency": "EUR",
         "defaultPrice": "0.00620000",
         "dialingPrefix": "1",
         "networks": [
            {
               "type": "mobile",
               "price": "0.00590000",
               "currency": "EUR",
               "mcc": "302",
               "mnc": "530",
               "networkCode": "302530",
               "networkName": "Keewaytinook Okimakanak"
            }
         ]
      }
   ]
}

Retrieve outbound pricing for a specific dialing prefix.

Retrieves the pricing information based on the dialing prefix.

gethttps://rest.nexmo.com/account/get-prefix-pricing/outbound/:type

Ruta Parámetros

type
string
Requerido

The type of service you wish to retrieve data about: either sms, sms-transit or voice.

Consulta Parámetros

api_key
string

Your Nexmo API key.

api_secret
string

Your Nexmo API secret.

prefix
string

The numerical dialing prefix to look up pricing for. Examples include 44, 1 and so on.

Respuestas
Tipo de contenido
application/json

Pricing countries response

count
string
ejemplo243

The number of countries retrieved.

countries
array

A list of countries.

countryName
string
ejemploCanada

Readable country name.

countryDisplayName
string
ejemploCanada

Readable country name.

currency
string
ejemploEUR

The currency that your account is being billed in (by default Euros—EUR).

defaultPrice
string
ejemplo0.00620000

The default price.

dialingPrefix
string
ejemplo1

The dialling prefix.

networks
array

An array of network objects

type
string
ejemplomobile

The type of network: mobile or landline.

price
string
ejemplo0.00590000

The cost to send a message or make a call to this network

currency
string
ejemploEUR

The currency used for prices for this network.

mcc
string
ejemplo302

The Mobile Country Code of the operator.

mnc
string
ejemplo530

The Mobile Network Code of the operator.

networkCode
string
ejemplo302530

The Mobile Country Code and Mobile Network Code combined to give a unique reference for the operator.

networkName
string
ejemploKeewaytinook Okimakanak

The company/organisational name of the operator.

Ejemplo Respuesta

{
   "count": "243",
   "countries": [
      {
         "countryName": "Canada",
         "countryDisplayName": "Canada",
         "currency": "EUR",
         "defaultPrice": "0.00620000",
         "dialingPrefix": "1",
         "networks": [
            {
               "type": "mobile",
               "price": "0.00590000",
               "currency": "EUR",
               "mcc": "302",
               "mnc": "530",
               "networkCode": "302530",
               "networkName": "Keewaytinook Okimakanak"
            }
         ]
      }
   ]
}