fbpx

< / >

Cases Insert

Cases Insert

URL:

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

Description:

The API for inserting cases allows us to search for records exclusively in the configured module by sending parameters.

How does it work?:

This API works through a “form-data” type body and a POST request, which requires the following fields for its correct functioning:

In the request headers, the following is required:

  • Wolkvox-Token 

 

– In the request body, the following is required:

  • operation
  • case-type
  • responsible
  • owner
  • contact
  • description
  • status
  • priority
  • form
  • file
  • solution

REQUEST

KEY
DESCRIPTION
EXAMPLE
Wolkvox-Token
It is the token configured by the client on the CRM page.
{token}
operation
It is the name of the CRM operation.
{operation_name}
case-type
It is the type of case.
Request
responsible
He is responsible for the case.
{user@operation}
owner
He is the owner of the case.
{user@operation}
contact
He is the existing contact of the user who creates a case.
{user@operation}
description
It is the case description.
Case created through API.
status
It is the status of the case.
open
priority
“It is the case priority.”
low
form
These are the custom fields that we have set up in our CRM.
{“name_field”: “value_field”}
solution
End or outcome of the process exerted.
{case_solution}
file
These are the attached files.

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_POSTFIELDS => array('operation' => '{operation}','case-type' => '{case-type}','responsible' => '{responsible}','owner' => '{owner}','contact' => '{contact}','description' => '{description}','status' => '{status}','priority' => '{baja}','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