HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/reply/VNBuyDIDCustomer HTTP/1.1
Host: api-uk.activesoftswitch.com
Content-Type: application/xml
Content-Length: length
<VNBuyDIDCustomer 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>
<Currency>String</Currency>
<ICustomer>0</ICustomer>
<MonthlyFee>0</MonthlyFee>
<SetupFee>0</SetupFee>
</VNBuyDIDCustomer>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<VNBuyDIDCustomerResponse 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>
<DictDidCustomer xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringVNDIDInventoryCustomertihPiPic>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.VirtualNumbers">
<CreatedOn xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">0001-01-01T00:00:00</CreatedOn>
<Id xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">0</Id>
<RowVersion xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">0</RowVersion>
<UpdatedOn xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">0001-01-01T00:00:00</UpdatedOn>
<d4p1:Currency>String</d4p1:Currency>
<d4p1:CustomerID>0</d4p1:CustomerID>
<d4p1:DIDNumberID>0</d4p1:DIDNumberID>
<d4p1:Monthly>0</d4p1:Monthly>
<d4p1:PurchasedOn>0001-01-01T00:00:00</d4p1:PurchasedOn>
<d4p1:SetupFee>0</d4p1:SetupFee>
</d2p1:Value>
</d2p1:KeyValueOfstringVNDIDInventoryCustomertihPiPic>
</DictDidCustomer>
</VNBuyDIDCustomerResponse>