Porta Plus 2 Web Services

<back to all web services

PortaRate

The following routes are available for this service:
GET/GetRateByTariffISO31661A2/{License}/{ITariff}/{Prefix}/{Iso_3166_1_a2}
GET/GetRateByTariff/{License}/{ITariff}/{Prefix}
GET/GetRateByTariffCountry/{License}/{ITariff}/{CountryName}
GET/GetRateByTariffCountryName/{License}/{ITariff}/{FullCountryName}

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/PortaRate HTTP/1.1 
Host: 7el.co 
Content-Type: text/csv
Content-Length: length

ITariff,Prefix,CountryName,FullCountryName,Iso_3166_1_a2,License,ContentId,FeatureName
0,String,String,String,String,String,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Rate,CountrysRates,License,ContentId,FeatureName
"{IDest:0,Number:String,IRate:0,Price1:0,PriceN:0,Interval1:0,IntervalN:0,Currency:String,Hidden:String,Discontinued:String,Forbidden:String,destination:String,description:String}","[{Name:String,Description:String,Prefix:String,SecondIntervalPrice:0,Hidden:String,Discontinued:String,Forbidden:String}]",String,0,String