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

< / >

APIs Campaign

7. Reprogramar llamada

Request

https://wv{{wolkvox_server}}.wolkvox.com/api/v2/campaign.php?api=recall&campaign_id={{campaign_id}}

Description

This API allows you to reschedule a call to a record in a predictive dialing campaign from an external application. It does not work for preview campaigns.

Benefit

This API allows you to reschedule calls to a record, for example, from an external application like a CRM, which facilitates and streamlines the contact management process.

How it Works

  • This API is consumed by the PUT method.
  • The JSON object should include parameters according to the operation or process to be performed.
  • Replace {{wolkvox_server}} in the URL with the server name for the operation.
  • Use the header `wolkvox-token: {{token}}` to provide the authorization token.
  • The same token cannot be used simultaneously. Schedule the next API call only after a successful response from the previous one.

Parameters

Name Description Type
campaign_id Campaign identification number String
recall_date Date to call back in {{YYYYmmddHHiiss}} format String
recall_telephone Phone number for the callback String
customer_id Customer identification number String

Response

Name Description Type
code Response code int
error Indicates if there was an error during the request String
msg Provides a descriptive message about the request result String
Posibles códigos de respuesta
				
					$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/campaign.php?api=recall&type_campaign={{type_campaign}}&campaign_id={{campaign_id}}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'PUT',
  CURLOPT_POSTFIELDS =>'{
    "recall_date": "",
    "recall_telephone": "",
    "customer_id": ""
}',
  CURLOPT_HTTPHEADER => array(
    'wolkvox-token: {{token}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
				
			

RESPONSE

				
					{
    "code": 202,
    "error": null,
    "msg": "customer_id xxxxxxx has been updated and will be call back on xxxxxx to phone xxxxx"
}
				
			

Hacemos uso de cookies, si continúas navegando asumiremos que estás de acuerdo. Puede leer más sobre el uso de cookies en nuestras políticas de privacidad y tratamiento de datos personales

Hacemos uso de cookies, si continúas navegando asumiremos que estás de acuerdo. Puede leer más sobre el uso de cookies en nuestras políticas de privacidad y tratamiento de datos personales