Porta Plus 2 Web Services

<back to all web services

WrapUpCodesRequest

The following routes are available for this service:
GET/GetAllWrapUpCodes/{License}/{iHuntgroup}
GET/GetAllWrapUpCodesByDirection/{License}/{iHuntgroup}/{direction}
GET/GetAllWrapUpCallbackTime/{License}/{iHuntgroup}/{getWrapUpCallBack}
POST/AddUpdateWrapUpCode
POST/AddUpdateWrapUpCallbackTime
POST/DeleteWrapUpCode
POST/DeleteWrapUpCallbackTime
POST/GetAllWrapUpCodesForAccount
POST/GetAllWrapUpCallbackTimeForAccount
GET/GetCallHistoryForNumber/{License}/{number}/{iCustomer}
POST/SaveCallHistoryForNumber
GET/GetAgentRecentCalls/{License}/{iAccount}
GET/GetAgentsCallbackTimeHistory/{License}/{iCustomer}
POST/UpdateActualCallBackTime
GET/GetAccountsforIcustomer/{License}/{iCustomer}
POST/UpdateScheduledCallBackTime
POST/SaveWrapupTime
GET/GetWrapUpTime/{License}/{iCustomer}

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/oneway/WrapUpCodesRequest HTTP/1.1 
Host: api-uk.activesoftswitch.com 
Content-Type: text/jsv
Content-Length: length

{
	iHuntgroup: 0,
	direction: String,
	getWrapUpCallBack: False,
	wrapUpCode: 
	{
		Id: 0,
		i_huntgroup: 0,
		direction: String,
		callback: False,
		outcome_text: String,
		outcome_rating: 0,
		i_customer: 0
	},
	wrapUpCallbackTime: 
	{
		Id: 0,
		i_huntgroup: 0,
		time: 0001-01-01,
		time_text: String,
		i_customer: 0
	},
	wrap_up_codes_id: 0,
	wrap_up_callbacktime_id: 0,
	wrapUpCallHistory: 
	{
		Id: 0,
		i_account: 0,
		i_xdr: 0,
		call_id: String,
		success: False,
		number: String,
		name: String,
		company: String,
		wrap_up_code_id: 0,
		wrap_up_callbacktime_id: 0,
		scheduled_callback_time: String,
		actual_callback_time: String,
		notes: String,
		start_time: String,
		duration: String,
		action: String,
		wrap_up_code_text: String,
		i_customer: 0,
		call_feedback: String
	},
	number: String,
	iAccount: 0,
	iCustomer: 0,
	updateActualCallbackTime: 
	{
		Id: 0,
		iAccount: 0,
		Name: String,
		Company: String,
		scheduled_callback_time: String,
		number: String
	},
	updateScheduledCallbackTime: 
	{
		Id: 0,
		iAccount: 0,
		Name: String,
		Company: String,
		scheduled_callback_time: String,
		number: String
	},
	saveWrapUpTime: 
	{
		Id: 0,
		iAccount: 0,
		iCustomer: 0,
		wrapuptime: String
	},
	License: String,
	ContentId: 0,
	FeatureName: String
}