Porta Plus 2 Web Services

<back to all web services

VNGetDIDSPorta

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

<VNGetDIDSPorta xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto.VirtualNumbers">
  <ContentId xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">0</ContentId>
  <FeatureName xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">String</FeatureName>
  <License xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">String</License>
  <AreaCode>String</AreaCode>
  <AreaName>String</AreaName>
  <ISO_3166_1_a2>String</ISO_3166_1_a2>
</VNGetDIDSPorta>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<VNGetDIDSPortaResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto.VirtualNumbers">
  <ContentId xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">0</ContentId>
  <FeatureName xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">String</FeatureName>
  <License xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">String</License>
  <lstPortaDIDs xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.VirtualNumbers">
    <d2p1:VNPortaDbDidNumber>
      <d2p1:activation_date>String</d2p1:activation_date>
      <d2p1:activation_fee>0</d2p1:activation_fee>
      <d2p1:allocation_date>String</d2p1:allocation_date>
      <d2p1:assigned>String</d2p1:assigned>
      <d2p1:canceled>String</d2p1:canceled>
      <d2p1:city_name>String</d2p1:city_name>
      <d2p1:country_iso>String</d2p1:country_iso>
      <d2p1:customer_markup>0</d2p1:customer_markup>
      <d2p1:description>String</d2p1:description>
      <d2p1:expiration_date>String</d2p1:expiration_date>
      <d2p1:i_customer>0</d2p1:i_customer>
      <d2p1:i_did_number>0</d2p1:i_did_number>
      <d2p1:i_did_provider>0</d2p1:i_did_provider>
      <d2p1:i_do_batch>0</d2p1:i_do_batch>
      <d2p1:i_dv_batch>0</d2p1:i_dv_batch>
      <d2p1:i_env>0</d2p1:i_env>
      <d2p1:i_vendor>0</d2p1:i_vendor>
      <d2p1:iso_4217>String</d2p1:iso_4217>
      <d2p1:managed_by>0</d2p1:managed_by>
      <d2p1:number>String</d2p1:number>
      <d2p1:periodic_fee>0</d2p1:periodic_fee>
      <d2p1:prev_i_customer>0</d2p1:prev_i_customer>
      <d2p1:released>String</d2p1:released>
      <d2p1:res_do_batch>0</d2p1:res_do_batch>
      <d2p1:reseller_markup>0</d2p1:reseller_markup>
      <d2p1:reserved>String</d2p1:reserved>
    </d2p1:VNPortaDbDidNumber>
  </lstPortaDIDs>
  <lstPortaVendorBatches xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.VirtualNumbers">
    <d2p1:VNPortaDbDIDVendorBatch>
      <d2p1:area_code>String</d2p1:area_code>
      <d2p1:area_code_description>String</d2p1:area_code_description>
      <d2p1:description>String</d2p1:description>
      <d2p1:i_dv_batch>0</d2p1:i_dv_batch>
      <d2p1:i_env>0</d2p1:i_env>
      <d2p1:i_vendor>0</d2p1:i_vendor>
      <d2p1:iso_3166_1_a2>String</d2p1:iso_3166_1_a2>
      <d2p1:name>String</d2p1:name>
    </d2p1:VNPortaDbDIDVendorBatch>
  </lstPortaVendorBatches>
</VNGetDIDSPortaResponse>