HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/reply/PortaCustomerInfo HTTP/1.1
Host: api-uk.activesoftswitch.com
Content-Type: application/xml
Content-Length: length
<PortaCustomerInfo 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>
<Admin>false</Admin>
<CustomersInfoWithOutLimit>false</CustomersInfoWithOutLimit>
<IAccount>0</IAccount>
<ICustomer>0</ICustomer>
<ICustomerType>0</ICustomerType>
<IParent>0</IParent>
<SearchString>String</SearchString>
<getCustomerSites>false</getCustomerSites>
</PortaCustomerInfo>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PortaCustomerInfoResponse 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>
<CustomerRes xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
<d2p1:Balance>0</d2p1:Balance>
<d2p1:CreditLimit>0</d2p1:CreditLimit>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:ICustomer>0</d2p1:ICustomer>
<d2p1:Name>String</d2p1:Name>
</CustomerRes>
<CustomerType xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
<d2p1:ICustomer>0</d2p1:ICustomer>
<d2p1:ICustomerType>0</d2p1:ICustomerType>
</CustomerType>
<CustomersShortInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta" i:nil="true" />
<DistributorsInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta" i:nil="true" />
</PortaCustomerInfoResponse>