fbpx

< / >

Query Cases

Query Cases

URL:

https://wv{{wolkvox_server}}.wolkvox.com/server/API/v2/cases/queryCases.php

Description:

The case search API allows us to search for case records in the parameterized modules of our CRM by sending parameters.

How does it work?:

This API works through a POST request which requires the following fields for its correct operation: – in the header: “Wolkvox-Token“, In the body of the request it is required: “operation“, “field“, “value“.

REQUEST

KEY
VALUE
DESCRIPTION
operation
modulotest01
It is the operation in which the client has configured the token and the module in which the record is searched.
field
tel
They are the fields that the client has configured in his module.
value
304598784
It is the value stored in the field “field”.
Wolkvox-Token
{token}
It is the token configured by the customer on the CRM page.

RESPONSE

				
					<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/cases/queryCases.php',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "operation":"{operation}",
    "field":"{field}",
    "value":"{value}"
}
',
  CURLOPT_HTTPHEADER => array(
    'Wolkvox-Token: {Wolkvox-Token}',
    'Content-Type: application/json',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
				
			
Possible error codes

Usamos cookies, se continuar a navegar assumimos que concorda. Pode ler mais sobre a utilização de cookies nas nossas políticas de privacidade e tratamento de dados pessoais

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