fbpx

< / >

Insert

Insert

URL:

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

Description:

The insert API allows us by sending parameters to insert 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“, En el cuerpo de la petición se requiere: – “operation“, – “module“, – “field” .

REQUEST

FIELD
DESCRIPTION
operation
It is the operation in which the client has configured the token and the module in which the record is created.
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.
field
The parameters of our search are the fields that the client has configured in his module.

RESPONSE

Field

RESPONSE

				
					"Campo": true
				
			

Currency

RESPONSE

				
					"Moneda": "123"
				
			

Date

RESPONSE

				
					"Fecha": "2022-01-03 00:00:00"
				
			

Date and Time

RESPONSE

				
					 "F y H": "2022-01-21 00:04:00"
				
			

Description

RESPONSE

				
					 "Desc": "text"
				
			

Mail

RESPONSE

				
					"Correo": "prueba@wolkvox.com"
				
			

List

RESPONSE

				
					 "Lista": "A"
				
			

Number

RESPONSE

				
					 "Numero":1
				
			

Radio

RESPONSE

				
					"Radio":"A"
				
			

Ramdon

RESPONSE

				
					"Ramdon":"d84c3245afgc61"
				
			

Switch

RESPONSE

				
					"Interruptor":"true"
				
			

Phone

RESPONSE

				
					Telefono"3014202134"
				
			

Text

RESPONSE

				
					 "Texto":"Prueba"
				
			

Time

RESPONSE

				
					"Hora":"14:56:25"
				
			

URL

RESPONSE

				
					  "url":"https://www.wolkvox.com/documentation-apis/agent"
				
			

Calculate

RESPONSE

				
					"Calcular":5
				
			

Dependent list

RESPONSE

				
					"Lista Dependiente":"amarillo"
				
			

Currency

RESPONSE

				
					
""Moneda"": { ""type"": ""currency"", ""value"": ""25"", ""symbol"": """", ""convert"": 25 },"
				
			

Phone

RESPONSE

				
					"Phone": { "type": "telephone", "value": "11111111", "country": "Andorra", "code": "376" },
				
			

Direction

RESPONSE

				
					"Interruptor": false, "Direccion": { "type": "address", "value": "52 sad sas" } } }
				
			

Tabl

RESPONSE

				
					"tabl"": { ""type"": ""table"", ""value"":[{ ""op1"": ""hola "", ""op2"": ""hola"" }, { ""op1"": ""we"", ""op2"": ""ro"" }] }
				
			
				
					<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://{{wolkvox_server}}/server/API/v2/custom/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 =>'{
    "operation":"{operation}",
    "module":"{module}",
    "fields":{}
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    '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