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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"ITariff":0,"Prefix":"String","CountryName":"String","FullCountryName":"String","Iso_3166_1_a2":"String","License":"String","ContentId":0,"FeatureName":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Rate":{"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"},"CountrysRates":[{"Name":"String","Description":"String","Prefix":"String","SecondIntervalPrice":0,"Hidden":"String","Discontinued":"String","Forbidden":"String"}],"License":"String","ContentId":0,"FeatureName":"String"}