Porta Plus 2 Web Services

<back to all web services

CustomerExtension

The following routes are available for this service:
GET/GetUnavailableExtensions/{License}/{ICustomer}/{isUnavailable}
GET/GetCustomerExtensions/{License}/{ICustomer}
GET/GetCustomerExtensions/{License}/{ICustomer}/{IProducts}
GET/GetCustomerExtensionsActiveCalls/{License}/{ICustomer}/{GetActiveCalls}
GET/GetFilteringData/{License}/{ICustomer}/{IsFiltering}
GET/GetCustomerExtensionsActiveCalls/{License}/{ICustomer}/{GetActiveCalls}/{IProducts}
GET/DeleteCustomerExtension/{License}/{ICustomer}/{ExtensionRecordId}
GET/AddCustomerExtension/{License}/{ICustomer}/{Name}/{Id}/{IAccount}
GET/GetOnlineAccounts/{License}/{ICustomer}/{GetSipStatus}
GET/AddCustomerExtenGetIdentitysion/{License}/{ICustomer}/{Name}/{Id}/{IAccount}
GET/UpdateCustomerExtension/{License}/{ICustomer}/{ExtensionRecordId}/{Name}/{Id}/{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/CustomerExtension HTTP/1.1 
Host: 7el.co 
Content-Type: application/xml
Content-Length: length

<CustomerExtension 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>
  <ExtensionRecordId>0</ExtensionRecordId>
  <GetActiveCalls>false</GetActiveCalls>
  <GetSipStatus>false</GetSipStatus>
  <IAccount>0</IAccount>
  <ICustomer>0</ICustomer>
  <IProducts>String</IProducts>
  <Id>String</Id>
  <IsFiltering>false</IsFiltering>
  <Name>String</Name>
  <isUnavailable>false</isUnavailable>
</CustomerExtension>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerExtensionResponse 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>
  <Extension xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">
    <d2p1:Note>String</d2p1:Note>
    <d2p1:PhoneNumber>String</d2p1:PhoneNumber>
    <d2p1:ProductName>String</d2p1:ProductName>
    <d2p1:account_id>String</d2p1:account_id>
    <d2p1:firstname>String</d2p1:firstname>
    <d2p1:i_account>0</d2p1:i_account>
    <d2p1:i_c_ext>0</d2p1:i_c_ext>
    <d2p1:id>String</d2p1:id>
    <d2p1:lastname>String</d2p1:lastname>
    <d2p1:name>String</d2p1:name>
  </Extension>
  <ExtensionDeleted>false</ExtensionDeleted>
  <ExtensionLst xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">
    <d2p1:DBExtensionsInfo>
      <d2p1:Note>String</d2p1:Note>
      <d2p1:PhoneNumber>String</d2p1:PhoneNumber>
      <d2p1:ProductName>String</d2p1:ProductName>
      <d2p1:account_id>String</d2p1:account_id>
      <d2p1:firstname>String</d2p1:firstname>
      <d2p1:i_account>0</d2p1:i_account>
      <d2p1:i_c_ext>0</d2p1:i_c_ext>
      <d2p1:id>String</d2p1:id>
      <d2p1:lastname>String</d2p1:lastname>
      <d2p1:name>String</d2p1:name>
    </d2p1:DBExtensionsInfo>
  </ExtensionLst>
  <ExtensionsActiveCalls xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models">
    <d2p1:DBExtensionsActiveCalls>
      <d2p1:CLD>String</d2p1:CLD>
      <d2p1:CLI>String</d2p1:CLI>
      <d2p1:DefaultValidIdentity>String</d2p1:DefaultValidIdentity>
      <d2p1:Email>String</d2p1:Email>
      <d2p1:IAccount>0</d2p1:IAccount>
      <d2p1:NetThroughput>0</d2p1:NetThroughput>
      <d2p1:SiteName>String</d2p1:SiteName>
      <d2p1:accountToJoin>String</d2p1:accountToJoin>
      <d2p1:account_id>String</d2p1:account_id>
      <d2p1:callToJoin>false</d2p1:callToJoin>
      <d2p1:firstname>String</d2p1:firstname>
      <d2p1:i_account>0</d2p1:i_account>
      <d2p1:i_c_ext>0</d2p1:i_c_ext>
      <d2p1:i_customer>0</d2p1:i_customer>
      <d2p1:i_customer_site>0</d2p1:i_customer_site>
      <d2p1:id>String</d2p1:id>
      <d2p1:lastname>String</d2p1:lastname>
      <d2p1:name>String</d2p1:name>
      <d2p1:noofcalls>0</d2p1:noofcalls>
      <d2p1:notInGroup>false</d2p1:notInGroup>
      <d2p1:note>String</d2p1:note>
      <d2p1:profile_url>String</d2p1:profile_url>
    </d2p1:DBExtensionsActiveCalls>
  </ExtensionsActiveCalls>
  <lstportaActiveCalls xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:PortaActiveCalls>
      <d2p1:AccountID>String</d2p1:AccountID>
      <d2p1:CLD>String</d2p1:CLD>
      <d2p1:CLI>String</d2p1:CLI>
      <d2p1:CallId>String</d2p1:CallId>
      <d2p1:CallType>String</d2p1:CallType>
      <d2p1:Connect_time>0001-01-01T00:00:00</d2p1:Connect_time>
      <d2p1:ConnectionName>String</d2p1:ConnectionName>
      <d2p1:Disconnect_time>0001-01-01T00:00:00</d2p1:Disconnect_time>
      <d2p1:DurationMins>String</d2p1:DurationMins>
      <d2p1:ExtensionNumber>String</d2p1:ExtensionNumber>
      <d2p1:GatewayId>String</d2p1:GatewayId>
      <d2p1:IAccount>0</d2p1:IAccount>
      <d2p1:IConnection>0</d2p1:IConnection>
      <d2p1:ICustomer>0</d2p1:ICustomer>
      <d2p1:IDialRuleCld>0</d2p1:IDialRuleCld>
      <d2p1:IEnv>0</d2p1:IEnv>
      <d2p1:Note>String</d2p1:Note>
      <d2p1:SubscriberFName>String</d2p1:SubscriberFName>
      <d2p1:SubscriberLName>String</d2p1:SubscriberLName>
      <d2p1:TrRuletoLocal>String</d2p1:TrRuletoLocal>
      <d2p1:VendorId>0</d2p1:VendorId>
      <d2p1:VendorName>String</d2p1:VendorName>
      <d2p1:noofcalls>0</d2p1:noofcalls>
      <d2p1:product>String</d2p1:product>
    </d2p1:PortaActiveCalls>
  </lstportaActiveCalls>
</CustomerExtensionResponse>