Porta Plus 2 Web Services

<back to all web services

PortaAccountInfo

The following routes are available for this service:
GET/GetAccountBalance/{License}/{IAccount}
GET/GetAccountDetails/{License}/{AccountID}
GET/GetAccountDetailsByIaccount/{License}/{IAccount}

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

<PortaAccountInfo 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>
  <AccountID>String</AccountID>
  <IAccount>0</IAccount>
</PortaAccountInfo>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PortaAccountInfoResponse 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>
  <AccountCustomerDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">
    <d2p1:AccountAddress>String</d2p1:AccountAddress>
    <d2p1:AccountAddress1>String</d2p1:AccountAddress1>
    <d2p1:AccountAddress2>String</d2p1:AccountAddress2>
    <d2p1:AccountAddress3>String</d2p1:AccountAddress3>
    <d2p1:AccountBCC>String</d2p1:AccountBCC>
    <d2p1:AccountCity>String</d2p1:AccountCity>
    <d2p1:AccountCompany>String</d2p1:AccountCompany>
    <d2p1:AccountContact1>String</d2p1:AccountContact1>
    <d2p1:AccountContact2>String</d2p1:AccountContact2>
    <d2p1:AccountCountry>String</d2p1:AccountCountry>
    <d2p1:AccountEmail>String</d2p1:AccountEmail>
    <d2p1:AccountFax>String</d2p1:AccountFax>
    <d2p1:AccountFirstName>String</d2p1:AccountFirstName>
    <d2p1:AccountLastName>String</d2p1:AccountLastName>
    <d2p1:AccountLogin>String</d2p1:AccountLogin>
    <d2p1:AccountName>String</d2p1:AccountName>
    <d2p1:AccountPassword>String</d2p1:AccountPassword>
    <d2p1:AccountPhoneNo1>String</d2p1:AccountPhoneNo1>
    <d2p1:AccountPhoneNo2>String</d2p1:AccountPhoneNo2>
    <d2p1:AccountPostcode>String</d2p1:AccountPostcode>
    <d2p1:AccountSalutation>String</d2p1:AccountSalutation>
    <d2p1:AccountState>String</d2p1:AccountState>
    <d2p1:CustomerAddress>String</d2p1:CustomerAddress>
    <d2p1:CustomerAddress1>String</d2p1:CustomerAddress1>
    <d2p1:CustomerAddress2>String</d2p1:CustomerAddress2>
    <d2p1:CustomerAddress3>String</d2p1:CustomerAddress3>
    <d2p1:CustomerCity>String</d2p1:CustomerCity>
    <d2p1:CustomerCompany>String</d2p1:CustomerCompany>
    <d2p1:CustomerCountry>String</d2p1:CustomerCountry>
    <d2p1:CustomerEmail>String</d2p1:CustomerEmail>
    <d2p1:CustomerFirstName>String</d2p1:CustomerFirstName>
    <d2p1:CustomerLastName>String</d2p1:CustomerLastName>
    <d2p1:CustomerName>String</d2p1:CustomerName>
    <d2p1:CustomerPhoneNo>String</d2p1:CustomerPhoneNo>
    <d2p1:CustomerPostcode>String</d2p1:CustomerPostcode>
    <d2p1:ICustomer>0</d2p1:ICustomer>
    <d2p1:IEnv>0</d2p1:IEnv>
    <d2p1:Note>String</d2p1:Note>
  </AccountCustomerDetails>
  <AvailableBalance>0</AvailableBalance>
</PortaAccountInfoResponse>