Porta Plus 2 Web Services

<back to all web services

PortaCDR

The following routes are available for this service:
GET/GetResellerCustomerCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeSubcustomers}
GET/GetResellerCustomerCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeSubcustomers}/{IService}
GET/getCustomerAccountCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IService}/{IncludeAccounts}
GET/getCustomerAccountCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}/{GetOutgoingCalls}
GET/getCustomerAccountCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}
GET/getCustomerAccountBillingTimeCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}/{DisconnectTimeFilter}
GET/GetCustomerResellerBillingTimeCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}/{DisconnectTimeResellerFilter}
GET/getCustomerAccountCDRSWithOffset/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}/{GetOutgoingCalls}/{FetchRecordsUsingOffset}/{Offset}/{GetHuntGroupReports}/{Customer_Timezone}/{showcurrentperiod}
GET/getAccountCDRSWithOffset/{License}/{IAccount}/{FromDate}/{ToDate}/{IncludeAccounts}/{GetOutgoingCalls}/{FetchRecordsUsingOffset}/{Offset}/{GetHuntGroupReports}/{Customer_Timezone}/{showcurrentperiod}
GET/getCustomerAccountVoiceCalls/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}/{GetOutgoingCalls}/{GetAccountVoiceCalls}/{Customer_Timezone}
GET/GetAccountCDRStatistics/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}/{GetOutgoingCalls}/{GetAccountVoiceCalls}/{getAccountSummary}/{i_product}
GET/getCustomerAccountConnectedVoiceCalls/{License}/{ICustomer}/{FromDate}/{ToDate}/{IncludeAccounts}/{GetOutgoingCalls}/{GetAccountVoiceCalls}/{Customer_Timezone}/{GetConnectedCalls}
GET/getCustomerCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IService}/{IncludeAccounts}
GET/getCustomerAccountCDRS/{License}/{ICustomer}/{FromDate}/{ToDate}/{IService}/{IncludeAccounts}/{Csv}
GET/getCDRS/Account/{License}/{IAccount}/{FromDate}/{ToDate}/{IService}
GET/getCDRS/Account/{License}/{IAccount}/{FromDate}/{ToDate}
GET/getOutgoingCDRS/{License}/{IAccount}/{FromDate}/{ToDate}/{GetOutgoingCalls}
GET/getcustomexdrdownloadlink/{License}/{ICustomer}/{FromDate}/{ToDate}/{RetailXDRInfo}
GET/getcustomerdidcharges/{License}/{FromDate}/{ToDate}

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/PortaCDR HTTP/1.1 
Host: 7el.co 
Content-Type: application/json
Content-Length: length

{"FromDate":"String","ToDate":"String","ICustomer":0,"IAccount":0,"IService":0,"IncludeAccounts":false,"Csv":false,"RetailXDRInfo":false,"IncludeSubcustomers":false,"GetOutgoingCalls":false,"FetchRecordsUsingOffset":false,"Offset":0,"GetAccountVoiceCalls":false,"GetHuntGroupReports":false,"DisconnectTimeFilter":"String","DisconnectTimeResellerFilter":"String","Customer_Timezone":"String","showcurrentperiod":false,"GetConnectedCalls":false,"getAccountSummary":false,"i_product":"String","License":"String","ContentId":0,"FeatureName":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"TotalCalls":0,"NextOffset":0,"PortaCustomerCDRS":[{"ID":0,"IEnv":0,"CLI":"String","CLD":"String","Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","Bill_time":"\/Date(-62135596800000-0000)\/","ICustomer":0,"IDest":0,"Charged_Quantity":0,"Charged_Amount":0,"CallId":"String","IService":0,"BitFlags":0}],"PortaAccountCDRS":[{"ID":0,"IEnv":0,"CLI":"String","CLD":"String","AccountID":"String","Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","Bill_time":"\/Date(-62135596800000-0000)\/","ICustomer":0,"IDest":0,"Charged_Quantity":0,"Charged_Amount":0,"CallId":"String","IAccount":0,"IService":0,"BitFlags":0,"Ratting_Pattern":"String","CallType":"String","h323_conf_id":"String","Used_Quantity":0,"failed":false}],"lstPortaCustomerAccountCDRS":[{"Rank":0,"h323_conf_id":"String","h323_incoming_conf_id":"String","ID":0,"IEnv":0,"CLI":"String","CLD":"String","AccountID":"String","Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","connect_datetime":"String","disconnect_datetime":"String","Bill_time":"\/Date(-62135596800000-0000)\/","ICustomer":0,"IDest":0,"Charged_Quantity":0,"Charged_Amount":0,"CallId":"String","IAccount":0,"ServiceName":"String","BitFlags":0,"DisconnectCause":0,"ServiceFlags":"String","History":"String","IService":0,"CallType":"String","RatingPattern":"String","Used_Quantity":0,"HuntGroupName":"String","AgentExtension":"String","CallTime":0,"HoldTime":"String"}],"lstPortaResellerSubscriptions":[{"ID":0,"IEnv":0,"CLI":"String","CLD":"String","AccountID":"String","Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","Bill_time":"\/Date(-62135596800000-0000)\/","ICustomer":0,"IDest":0,"Charged_Quantity":0,"Used_Quantity":0,"Charged_Amount":0,"CallId":"String","IAccount":0,"ServiceName":"String","BitFlags":0,"DisconnectCause":0,"ServiceFlags":"String","History":"String","IService":0,"Count":0,"SubscriptionName":"String","TotalChargedAmount":0,"IParent":0}],"DictPortaCustomerAccountCDRS":{"String":[{"Rank":0,"h323_conf_id":"String","h323_incoming_conf_id":"String","ID":0,"IEnv":0,"CLI":"String","CLD":"String","AccountID":"String","Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","connect_datetime":"String","disconnect_datetime":"String","Bill_time":"\/Date(-62135596800000-0000)\/","ICustomer":0,"IDest":0,"Charged_Quantity":0,"Charged_Amount":0,"CallId":"String","IAccount":0,"ServiceName":"String","BitFlags":0,"DisconnectCause":0,"ServiceFlags":"String","History":"String","IService":0,"CallType":"String","RatingPattern":"String","Used_Quantity":0,"HuntGroupName":"String","AgentExtension":"String","CallTime":0,"HoldTime":"String"}]},"ConnectedCallDataRecords":{"String":[{"groupid":0,"rank":0,"h323_conf_id":"String","h323_incoming_conf_id":"String","AccountID":"String","CLI":"String","CLD":"String","CallId":"String","CallId_1":"String","BitFlags":0,"Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","bill_time":"\/Date(-62135596800000-0000)\/","ServiceName":"String"}]},"ConnectedCallsRecords":{"String":[{"GroupID":0,"CDRS":[{"groupid":0,"rank":0,"h323_conf_id":"String","h323_incoming_conf_id":"String","AccountID":"String","CLI":"String","CLD":"String","CallId":"String","CallId_1":"String","BitFlags":0,"Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","bill_time":"\/Date(-62135596800000-0000)\/","ServiceName":"String"}]}]},"XDRSInfo":[{"i_xdr":0,"i_xdrSpecified":false,"i_service":0,"i_serviceSpecified":false,"i_dest":0,"i_destSpecified":false,"account_id":"String","CLI":"String","CLD":"String","charged_amount":0,"charged_amountSpecified":false,"charged_quantity":0,"charged_quantitySpecified":false,"country":"String","subdivision":"String","description":"String","disconnect_cause":"String","bill_status":"String","disconnect_reason":"String","connect_time":"\/Date(-62135596800000-0000)\/","connect_timeSpecified":false,"unix_connect_time":0,"unix_connect_timeSpecified":false,"disconnect_time":"\/Date(-62135596800000-0000)\/","disconnect_timeSpecified":false,"unix_disconnect_time":0,"unix_disconnect_timeSpecified":false,"bill_time":"\/Date(-62135596800000-0000)\/","bill_timeSpecified":false,"bit_flags":0,"bit_flagsSpecified":false,"call_recording_url":"String","call_recording_server_url":"String","cr_download_links":["String"],"h323_conf_id":"String","h323_incoming_conf_id":"String","xdr_type":"String","service":"String","destination":"String","iso_3166_1_a3":"String","i_rate":0,"i_rateSpecified":false}],"DateRanges":[{"rank":0,"Connect_time":"\/Date(-62135596800000-0000)\/","connect_datetime":"String"}],"TotalUsage":{"FromTime":"\/Date(-62135596800000-0000)\/","Totime":"\/Date(-62135596800000-0000)\/","ChargedMinutes":0,"ChargedCost":0},"AccountStatisticsSummary":{"String":[{"i_account":0,"outgoing_count":0,"outgoing_duration":0,"avgoutgoing_count":0,"avgoutgoing_duration":0,"incoming_count":0,"incoming_duration":0,"total_count":0,"total_duration":0,"AccountID":"String"}]},"License":"String","ContentId":0,"FeatureName":"String"}