fbpx
Search
Close this search box.
Search
Close this search box.

< / >

APIs Reports Manager

1. Call Detail En

URL:

https://wv{{wolkvox_server}}.wolkvox.com/api/v2/reports_manager.php?api=cdr_1&date_ini={{YYYYmmddHHiiss}}&date_end={{YYYYmmddHHiiss}}

Description:

This report provides a complete view of the call details, classified by activity code and description; identifying the campaign, the call, the customer, the agent and who ends the interaction; and indicating the date, destination, phone, duration and cost of the communication.

Benefit:

This report allows for tracking of accounting by indicating the value of voice service consumption.

How it works:

  • This API is consumed by GET method.
  • To consume this API, you must replace in the URL {{wolkvox_server}} by the server nomenclature of the operation and the {{wolkvox_token}} generated from wolkvox Manager to obtain the information securely.
  • Note that the same token cannot be consumed simultaneously, so you can program the next API to be consumed when the result of the previous one is successful.
  • In terms of time, to track your operation you can make a consumption every 5 minutes of the information.

Request:

NAME DESCRIPTION TYPE
api Type of report required String
date_ini Initial Date (YYYYmmddHHiiss) String
date_end Final Date (YYYYmmddHHiiss) String

Response:

NAME DESCRIPTION TYPE
agent_name Name of the agent String
date Indicates the date in the format year-month-day-hour String
destiny Indicates the destination of the call String
telephone Indicates the telephone number to which the call was made String
cost It is the price of the use of the product String
time_seg Indicates time in units of seconds String
time_min Indicates time in units of minutes String
cod_act Refers to the classification of the call. This field can display the value “TIMEOUTACW” if the agent exceeded the time limit to code the call. This functionality can be activated through the wolkvox Manager application and allows setting a time limit for the agent to categorize or code the interaction with the client. String
cod_act_2 Refers to the classification of the call 2. This field can display the value “TIMEOUTACW” if the agent exceeded the time limit to code the call. String
Possible response codes
				
					$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/reports_manager.php?api=cdr_1&date_ini={{YYYYmmddHHiiss}}&date_end={{YYYYmmddHHiiss}}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'wolkvox-token: {{wolkvox_token}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


				
			

RESPONSE

				
					{
    "code": 200,
    "error": null,
    "msg": "1 records were found",
    "data": [
        {
            "conn_id": "",
            "channel": "",
            "date": "",
            "customer_name": "",
            "customer_email": "",
            "customer_phone": "",
            "customer_chars": "",
            "agent_id": "",
            "agent_name": "",
            "agent_chars": "",
            "time_on_agent": "",
            "chat_duration": "",
            "cod_act": "",
            "description_cod_act": "",
            "comments": "test",
            "customer_id": "",
            "skill_id": "",
            "ASA": "",
            "last_participant_who_spoke": "",
            "extra_field": "",
            "comment": "",
            "user_id": "",
            "feeling": "",
            "agent_anwers ": ""
        }
    ]
}
				
			
We use cookies, if you continue browsing we will assume that you agree. You can read more about the use of cookies in our privacy policies and treatment of personal data