Retrieves pricing for a specified country.

API Endpoint

GET
https://api.plivo.com/v1/Account/{auth_id}/Pricing/

Arguments

country_iso
required
string

The two-character country ISO code — for example, US for United States.

Returns

The Pricing object.

Response

HTTP Status Code: 200

{
   "api_id":"7ff5505c-93ca-11e7-9bde-024427e23b8a",
   "country":"United States",
   "country_code":1,
   "country_iso":"US",
   "message":{
      "inbound":{
         "rate":"0.00000"
      },
      "outbound":{
         "rate":"0.00350"
      },
      "outbound_networks_list":[
         {
            "group_name":"US",
            "rate":"0.00350"
         },
         {
            "group_name":"United States - AT&T Mobility",
            "rate":"0.00350"
         }
      ]
   },
   "phone_numbers":{
      "local":{
         "rate":"0.80000"
      },
      "tollfree":{
         "rate":"1.00000"
      }
   },
   "voice":{
      "inbound":{
         "ip":{
            "rate":"0.00300"
         },
         "local":{
            "rate":"0.00850"
         },
         "tollfree":{
            "rate":"0.02100"
         }
      },
      "outbound":{
         "ip":{
            "rate":"0.00300"
         },
         "local":{
            "rate":"0.00750"
         },
         "rates":[
            {
               "prefix":[
                  "1"
               ],
               "origination_prefix":[
                  "" // blank string represents default rate
               ],
               "rate":"0.00750"
            },
            {
               "prefix":[
                  "1"
               ],
               "origination_prefix":[
                  "1232", "1434", "1652"
               ],
               "rate":"0.0150"
            }
         ],
         "tollfree":{
            "rate":null
         }
      }
   }
}