Pricing API

Version 2

The Pricing API enabled the retrieval of Vonage services pricing information. Please note the Pricing API is rate limited to one request per second.

OpenAPI-Spezifikation herunterladen
Verfügbare Operationen

Retrieve pricing.

Retrieves the pricing information for a certain product.

gethttps://api.nexmo.com/v2/account/pricing/:product

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt.
Mehr lesen

Headers

Basic <base64>

Pfad Parameter

product
string
Erforderlich

The product for which you want to retrieve pricing information.

Muss eines der folgenden sein:sms-outboundvoice-outbound

Abfrage Parameter

country
string

A two letter country code. For example, CA.

page
integer

The page number of the results to retrieve.

page_size
integer

The number of results to retrieve per page.

Antworten
Inhalt Typ
application/json

Pricing information for a specific product.

page_size
string
Beispiel100

The number of results per page.

page
string
Beispiel1

The page number of the results.

total_items
string
Beispiel243

The total number of items.

total_pages
string
Beispiel3

The total number of pages.

_embedded
object
countries
array

A list of countries.

country_name
string
BeispielCanada

Country name.

dialing_prefix
string
Beispiel1

The dialling prefix.

dest_network_type
string
BeispielALL

The type of network.

group_internal_start
string
Beispiel1s

TBD

rate_increment
string
Beispiel60

The rate increment.

currency
string
BeispielUSD

The currency that your account is being billed in.

price
string
Beispiel0.1

The price.

_links
object
self
object
href
string
Beispielhttps://api.nexmo.com/account/pricing/sms-outbound?page=1&page_size=100

The URL to retrieve the current page.

first
object
href
string
Beispielhttps://api.nexmo.com/account/pricing/sms-outbound?page=1&page_size=100

The URL to retrieve the first page.

last
object
href
string
Beispielhttps://api.nexmo.com/account/pricing/sms-outbound?page=3&page_size=100

The URL to retrieve the last page.

next
object
href
string
Beispielhttps://api.nexmo.com/account/pricing/sms-outbound?page=2&page_size=100

The URL to retrieve the next page.

prev
object
href
string
Beispielhttps://api.nexmo.com/account/pricing/sms-outbound?page=1&page_size=100

The URL to retrieve the previous page.

Beispiel Antwort

{
   "page_size": "100",
   "page": "1",
   "total_items": "243",
   "total_pages": "3",
   "_embedded": {
      "countries": [
         {
            "country_name": "Canada",
            "dialing_prefix": "1",
            "dest_network_type": "ALL",
            "group_internal_start": "1s",
            "rate_increment": "60",
            "currency": "USD",
            "price": "0.1"
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/account/pricing/sms-outbound?page=1&page_size=100"
      },
      "first": {
         "href": "https://api.nexmo.com/account/pricing/sms-outbound?page=1&page_size=100"
      },
      "last": {
         "href": "https://api.nexmo.com/account/pricing/sms-outbound?page=3&page_size=100"
      },
      "next": {
         "href": "https://api.nexmo.com/account/pricing/sms-outbound?page=2&page_size=100"
      },
      "prev": {
         "href": "https://api.nexmo.com/account/pricing/sms-outbound?page=1&page_size=100"
      }
   }
}