Porta Plus 2 Web Services

<back to all web services

VNBuyDIDVendor

The following routes are available for this service:
GET/VNBuyDIDVendorInfo/{License}/{CountryCode}/{CountryName}/{AreaCode}/{CityName}/{FilterByPrice}/{OnlyDidInventoryPool}

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

<VNBuyDIDVendor 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>
  <AreaCode>0</AreaCode>
  <CityName>String</CityName>
  <CountryCode>0</CountryCode>
  <CountryName>String</CountryName>
  <FilterByPrice>false</FilterByPrice>
  <MonthlyFee>0</MonthlyFee>
  <OnlyDidInventoryPool>false</OnlyDidInventoryPool>
  <SetupFee>0</SetupFee>
</VNBuyDIDVendor>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<VNBuyDIDVendorResponse 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>
  <DIDVendorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.VirtualNumbers">
    <d2p1:Balance>0</d2p1:Balance>
    <d2p1:BalanceTopUpUrl>String</d2p1:BalanceTopUpUrl>
    <d2p1:Monthly>0</d2p1:Monthly>
    <d2p1:SetupFee>0</d2p1:SetupFee>
    <d2p1:Supplier>String</d2p1:Supplier>
  </DIDVendorDetails>
</VNBuyDIDVendorResponse>