Porta Plus 2 Web Services

<back to all web services

VNAvailableCityDIDS

The following routes are available for this service:
GET/GetAvailableCities/{License}/{OnlyDidInventoryPool}/{ITariff}/{Iso_3166_1_a2}
POST/GetAvailableCities

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/VNAvailableCityDIDS HTTP/1.1 
Host: 7el.co 
Content-Type: application/xml
Content-Length: length

<VNAvailableCityDIDS 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>
  <ITariff>0</ITariff>
  <Iso_3166_1_a2>String</Iso_3166_1_a2>
  <OnlyDidInventoryPool>false</OnlyDidInventoryPool>
</VNAvailableCityDIDS>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<VNAvailableCityDIDSResponse 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>
  <VNAllCities xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:PortaAPICity>
      <d2p1:AgreementID>0</d2p1:AgreementID>
      <d2p1:AreaCode>String</d2p1:AreaCode>
      <d2p1:CityName>String</d2p1:CityName>
      <d2p1:CountryCode>0</d2p1:CountryCode>
      <d2p1:DidGroupId>0</d2p1:DidGroupId>
      <d2p1:MonthlyFee>0</d2p1:MonthlyFee>
      <d2p1:SetupFee>0</d2p1:SetupFee>
      <d2p1:State>String</d2p1:State>
      <d2p1:SupplierID>0</d2p1:SupplierID>
      <d2p1:SupplierName>String</d2p1:SupplierName>
    </d2p1:PortaAPICity>
  </VNAllCities>
  <VNAvailableCities xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:PortaAPICity>
      <d2p1:AgreementID>0</d2p1:AgreementID>
      <d2p1:AreaCode>String</d2p1:AreaCode>
      <d2p1:CityName>String</d2p1:CityName>
      <d2p1:CountryCode>0</d2p1:CountryCode>
      <d2p1:DidGroupId>0</d2p1:DidGroupId>
      <d2p1:MonthlyFee>0</d2p1:MonthlyFee>
      <d2p1:SetupFee>0</d2p1:SetupFee>
      <d2p1:State>String</d2p1:State>
      <d2p1:SupplierID>0</d2p1:SupplierID>
      <d2p1:SupplierName>String</d2p1:SupplierName>
    </d2p1:PortaAPICity>
  </VNAvailableCities>
  <VNCountryInfo>
    <CountryInfo>
      <Category xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Category>
      <Description xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Description>
      <Type>String</Type>
    </CountryInfo>
  </VNCountryInfo>
  <VNPortaCities xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:PortaCities>
      <d2p1:AgreementID>0</d2p1:AgreementID>
      <d2p1:AreaCode>String</d2p1:AreaCode>
      <d2p1:CityName>String</d2p1:CityName>
      <d2p1:MonthlyFee>0</d2p1:MonthlyFee>
      <d2p1:SetupFee>0</d2p1:SetupFee>
      <d2p1:State>String</d2p1:State>
    </d2p1:PortaCities>
  </VNPortaCities>
</VNAvailableCityDIDSResponse>