fbpx

< / >

Delete

Delete

URL:

https://wv{{wolkvox_server}}.wolkvox.com/server/API/v2/custom/delete.php

Description

The deletion API allows us to delete 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“,The body of the request requires: “operation“, “module“, “fields“,  “multiple“, “wolkvox-id“.

REQUEST

FIELD
DESCRIPTION
operation
It is the operation in which the client has configured the token and the module in which the record is deleted.
wolkvox-token
It is the token configured by the client on the CRM page, which is located in the headers.
module
It is the module that the client will consult.
fields
The parameters of our search are the fields that the client has configured in his module.
multiple
It is the field that when selected (true) an array is displayed to eliminate various data.
wolkvox-id
It is the ID obtained after the creation of the case.
				
					<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/custom/delete.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}",
    "multiple":false,
    "wolkvox-id":"{wolkvox-id}"
}',
  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