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

HTTP + JSV

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

POST /jsv/reply/PortaCDR HTTP/1.1 
Host: 7el.co 
Content-Type: text/jsv
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: text/jsv
Content-Length: length

{
	TotalCalls: 0,
	NextOffset: 0,
	PortaCustomerCDRS: 
	[
		{
			ID: 0,
			IEnv: 0,
			CLI: String,
			CLD: String,
			Connect_time: 0001-01-01,
			Disconnect_time: 0001-01-01,
			Bill_time: 0001-01-01,
			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: 0001-01-01,
			Disconnect_time: 0001-01-01,
			Bill_time: 0001-01-01,
			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: 0001-01-01,
			Disconnect_time: 0001-01-01,
			connect_datetime: String,
			disconnect_datetime: String,
			Bill_time: 0001-01-01,
			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: 0001-01-01,
			Disconnect_time: 0001-01-01,
			Bill_time: 0001-01-01,
			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: 0001-01-01,
				Disconnect_time: 0001-01-01,
				connect_datetime: String,
				disconnect_datetime: String,
				Bill_time: 0001-01-01,
				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: 0001-01-01,
				Disconnect_time: 0001-01-01,
				bill_time: 0001-01-01,
				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: 0001-01-01,
						Disconnect_time: 0001-01-01,
						bill_time: 0001-01-01,
						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: 0001-01-01,
			connect_timeSpecified: False,
			unix_connect_time: 0,
			unix_connect_timeSpecified: False,
			disconnect_time: 0001-01-01,
			disconnect_timeSpecified: False,
			unix_disconnect_time: 0,
			unix_disconnect_timeSpecified: False,
			bill_time: 0001-01-01,
			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: 0001-01-01,
			connect_datetime: String
		}
	],
	TotalUsage: 
	{
		FromTime: 0001-01-01,
		Totime: 0001-01-01,
		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
}