fbpx

< / >

Cases Insert

Cases Insert

URL:

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

Description:

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

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” ,”case-type“, “responsible“, “owner“, “contact“, “description” , “status“, “priority“, “form” .

REQUEST

KEY
VALUE
DESCRIPTION
Wolkvox-Token
{token}
It is the token configured by the client on the CRM page.
operation
modulotest01
It is the operation in which the client has configured the token and the module in which the record is inserted.
case-type
Request
The type of case according to its purpose with which it will be carried out.
responsible
He is responsible for the case.
owner
He is the owner of the case.
contact
Owner contact.
description
API
The description of the case.
status
abierto
The status of the case.
priority
alta
The priority of the case.
form
{}
The customer’s custom fields where the type of data the case wants to enter is entered.

RESPONSE

				
					<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/cases/insert.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_SSL_VERIFYPEER => false,
  CURLOPT_POSTFIELDS => array('operation' => 'modulotest01','case-type' => 'Request','responsible' => 'ADMIN_@modulotest01','owner' => 'ADMIN_@modulotest01','contact' => 'andres@wolkvox.com','description' => 'API','status' => 'Abierto','priority' => 'Alta','form' => '{}'),
  CURLOPT_HTTPHEADER => array(
    'Wolkvox-Token: {Wolkvox_Token}',
  ),
));

$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