Porta Plus 2 Web Services

<back to all web services

PortaCustomerInfo

The following routes are available for this service:
GET/GetCustomerBalance/{License}/{ICustomer}
GET/GetCustomersShortInfo/{License}
GET/GetCustomersShortInfo/{License}/{SearchString}/{IParent}
GET/GetCustomerSitesForDR/{License}/{ICustomer}/{SearchString}/{getCustomerSites}
GET/GetAccountCustomerSites/{License}/{IAccount}/{getCustomerSites}
GET/GetCustomersTypeInfo/{License}/{IParent}/{ICustomerType}
GET/GetDistributorsInfo/{License}/{ICustomerType}
GET/GetAdminCustomerBalance/{License}/{Admin}
GET/GetCustomersShortInfoWithNoLimit/{License}/{CustomersInfoWithOutLimit}

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/PortaCustomerInfo HTTP/1.1 
Host: 7el.co 
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>