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 .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/CustomerExtension HTTP/1.1 
Host: api-uk.activesoftswitch.com 
Content-Type: text/csv
Content-Length: length

ICustomer,Name,Id,ExtensionRecordId,IAccount,IProducts,GetActiveCalls,IsFiltering,GetSipStatus,isUnavailable,License,ContentId,FeatureName
0,String,String,0,0,String,False,False,False,False,String,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

lstportaActiveCalls,ExtensionLst,Extension,ExtensionDeleted,ExtensionsActiveCalls,License,ContentId,FeatureName
"[{IEnv:0,CLI:String,CLD:String,AccountID:String,Connect_time:0001-01-01,Disconnect_time:0001-01-01,ICustomer:0,CallId:String,IAccount:0,noofcalls:0,DurationMins:String,CallType:String,VendorId:0,VendorName:String,ConnectionName:String,IConnection:0,GatewayId:String,IDialRuleCld:0,TrRuletoLocal:String,product:String,Note:String,SubscriberFName:String,SubscriberLName:String,ExtensionNumber:String}]","[{i_c_ext:0,id:String,name:String,i_account:0,account_id:String,firstname:String,lastname:String,Note:String,ProductName:String,PhoneNumber:String}]","{i_c_ext:0,id:String,name:String,i_account:0,account_id:String,firstname:String,lastname:String,Note:String,ProductName:String,PhoneNumber:String}",False,"[{i_c_ext:0,id:String,name:String,i_account:0,account_id:String,firstname:String,lastname:String,noofcalls:0,activecall:True,NetThroughput:0,note:String,SiteName:String,i_customer_site:0,IAccount:0,Email:String,CLD:String,CLI:String,DefaultValidIdentity:String,callToJoin:False,accountToJoin:String,i_customer:0,notInGroup:False,profile_url:String}]",String,0,String