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

HTTP + XML

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

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

<PortaRate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <CountryName>String</CountryName>
  <FullCountryName>String</FullCountryName>
  <ITariff>0</ITariff>
  <Iso_3166_1_a2>String</Iso_3166_1_a2>
  <Prefix>String</Prefix>
</PortaRate>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PortaRateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <CountrysRates xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Models">
    <d2p1:CountryDestinationRate>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:Discontinued>String</d2p1:Discontinued>
      <d2p1:Forbidden>String</d2p1:Forbidden>
      <d2p1:Hidden>String</d2p1:Hidden>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Prefix>String</d2p1:Prefix>
      <d2p1:SecondIntervalPrice>0</d2p1:SecondIntervalPrice>
    </d2p1:CountryDestinationRate>
  </CountrysRates>
  <Rate xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Models">
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:Discontinued>String</d2p1:Discontinued>
    <d2p1:Forbidden>String</d2p1:Forbidden>
    <d2p1:Hidden>String</d2p1:Hidden>
    <d2p1:IDest>0</d2p1:IDest>
    <d2p1:IRate>0</d2p1:IRate>
    <d2p1:Interval1>0</d2p1:Interval1>
    <d2p1:IntervalN>0</d2p1:IntervalN>
    <d2p1:Number>String</d2p1:Number>
    <d2p1:Price1>0</d2p1:Price1>
    <d2p1:PriceN>0</d2p1:PriceN>
    <d2p1:description>String</d2p1:description>
    <d2p1:destination>String</d2p1:destination>
  </Rate>
</PortaRateResponse>