fbpx

< / >

Query Dates

Query Dates

URL:

https://{{wolkvox_server}}/server/API/v2/custom/queryDates.php

Description:

The date search API allows us, by sending parameters, to search for records in the parameterized modules of our CRM within a defined date range.

¿How it works?

This API operates through a ‘raw‘ type body and a GET request, which requires the following fields for its proper functioning:

In the request headers, the following is required:

  • Wolkvox-Token

– In the request body, the following is required:

  • operation
  • module
  • date
  • from
  • to

As a requirement for the date range search to work correctly, you must set the value of the ‘date‘ field to ‘true‘.

 

How to determine the CRM server?

  • Access the CRM homepage using the link: https://crm.wolkvox.com/
  •  Log in using your CRM credentials.
  • Once you have logged in and are on the homepage of your CRM platform, observe the address bar of your web browser. The URL in this bar indicates the server where your operation is hosted.
  • Replace {{crm_server}} in the original URL with the specific URL of your CRM server to ensure that the API points correctly to your CRM instance.

Important Notice: Access Route Update

Starting September 1, 2024, new URLs will be implemented to access the wolkvox CRM platform. The current URLs will coexist with the new ones until November 30, 2024, after which they will be disabled.

New URLs:

From “https://sv0001.crmvox.com” to “https://crm0001.wolkvox.com

From “https://sv0000.crmvox.com” to “https://crm0000.wolkvox.com

Please ensure you update your integrations and automations before November 30, 2024, to avoid service interruptions.

REQUEST

KEY
DESCRIPTION
EXAMPLE
Wolkvox-Token
It is the token configured by the client on the CRM page.
A8K3J7F2
operation
It is the name of the CRM operation.
“operation”: “testmodule”
module
Module name for querying.
contacts
date
It is a conditional field to determine the date range search. This should be set to TRUE to perform the date-based query.
“date”: true
from
It is the initial range to generate the query.
“from”: “2023-09-01 00:00”
to
It is the final range to generate the query.
“to”: “2023-09-30 00:00”
limit
This field is optional and refers to the limit of records you want to see in the response.
“limit”: “2”

REQUEST

				
					$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/custom/queryDates.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}}",
    "module":"{{module}}",
    "date": {{date}},
    "from": "{{from}}",
    "to": "{{to}}"
    
 }',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Wolkvox-Token: {{token}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

				
			

RESPONSE

It provides all the fields created in the module, plus the default fields, which are the following:

KEY
DESCRIPTION
EXAMPLE
wolkvox_usuario_creacion
It is the user who created the record.
“wolkvox_usuario_creacion”: “admin@testmodule”
wolkvox_fecha_creacion
It is the name of the CRM operation
“wolkvox_fecha_creacion”: “2023-09-29 10:59:54”
wolkvox_origen
It indicates where the record was created from.
“PostmanRuntime/7.33.0 – /server/API/v2/custom/insert.php”
wolkvox_ip_address
It indicates the public IP from which the record was created.
“wolkvox_ip_address”: “xxx.ccc.ddd.ee – v2”
wolkvox_owner
It displays a set of data about the owner of the record. This dataset includes the username (user), name (nombre), ID number (id), and email address (email).
“wolkvox_owner”: { “user”: “api”, “nombre”: “api”, “id”: “api”, “email”: “api” }
wolkvox_id
It is the identification number of the record in Wolkvox CRM.
“wolkvox_id”: “6cvvbbxx”
				
					[
    {
        "wolkvox_usuario_creacion": "",
        "wolkvox_fecha_creacion": "",
        "wolkvox_origen": "",
        "wolkvox_ip_address": "",
        "wolkvox_owner": {
            "user": "",
            "nombre": "",
            "id": "",
            "email": ""
        },
        "wolkvox_id": ""
    }
]
				
			
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