Skip to main content

Crear un Ticket de Soporte

Endpoint

POST https://api.verifik.co/v2/support-tickets

Este endpoint te permite crear un nuevo ticket de soporte para atención al cliente y seguimiento de problemas.

encabezados

NombreValor
Content-Typeapplication/json
AuthorizationBearer {YOUR_ACCESS_TOKEN}

parámetros del cuerpo

title

Tipo: string
Requerido:

Título o asunto del ticket de soporte.

description

Tipo: string
Requerido:

Descripción detallada del problema o solicitud.

priority

Tipo: string
Requerido:

Nivel de prioridad: low, medium, high, urgent

category

Tipo: string
Requerido:

Categoría: technical, billing, account, feature_request, general

tags

Tipo: array of string
Requerido: No

Arreglo de etiquetas para categorizar el ticket.

attachments

Tipo: array of object
Requerido: No

Arreglo de archivos adjuntos.

Ejemplo de Solicitud

const axios = require("axios");

const config = {
method: "post",
url: "https://api.verifik.co/v2/support-tickets",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
data: {
title: "Problema de Integración de API",
description: "Tengo problemas para integrar la API de validación biométrica. Obtengo errores 401 al intentar autenticarme.",
priority: "high",
category: "technical",
tags: ["api", "autenticación", "biométrica"],
attachments: [
{
filename: "error_logs.txt",
url: "https://storage.verifik.co/attachments/error_logs.txt",
size: 1024,
type: "text/plain"
}
]
}
};

axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});

Ejemplo de Respuesta

{
"success": true,
"data": {
"_id": "support_ticket_123456789",
"title": "Problema de Integración de API",
"description": "Tengo problemas para integrar la API de validación biométrica. Obtengo errores 401 al intentar autenticarme.",
"status": "open",
"priority": "high",
"category": "technical",
"client": "client_123456789",
"assignedTo": null,
"threads": [
{
"author": "client_123456789",
"message": "Tengo problemas para integrar la API de validación biométrica. Obtengo errores 401 al intentar autenticarme.",
"timestamp": "2024-01-15T10:30:00Z",
"type": "user"
}
],
"attachments": [
{
"filename": "error_logs.txt",
"url": "https://storage.verifik.co/attachments/error_logs.txt",
"size": 1024,
"type": "text/plain"
}
],
"tags": ["api", "autenticación", "biométrica"],
"resolution": null,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"resolvedAt": null
}
}