Tipos de atenciones

En la API v3 de Sperant se podrá Listar tipos de atención y mostrar una atención determinado:

Listar tipos de atención

GET https://api.sperant.com/v3/attention_types

Permite litar los tipos de atención existentes en el sistema sperant.

Headers

Name
Type
Description

Authorization

string

Token entregado

{
    "data": [
        {
            "type": "attention_types",
            "id": "4",
            "attributes": {
                "id": 4,
                "name": "Queja",
                "max_attention": 30,
                "reminder_days": 3,
                "color": "#879513"
            }
        },
        {
            "type": "attention_types",
            "id": "5",
            "attributes": {
                "id": 5,
                "name": "Reclamo",
                "max_attention": 30,
                "reminder_days": 3,
                "color": "#f4fd20"
            }
        },
        {
            "type": "attention_types",
            "id": "6",
            "attributes": {
                "id": 6,
                "name": "Carta Informativa",
                "max_attention": 7,
                "reminder_days": 3,
                "color": "#040469"
            }
        },
        {
            "type": "attention_types",
            "id": "7",
            "attributes": {
                "id": 7,
                "name": "Requerimiento de información",
                "max_attention": 7,
                "reminder_days": 3,
                "color": "#8922b6"
            }
        },
        {
            "type": "attention_types",
            "id": "8",
            "attributes": {
                "id": 8,
                "name": "Solicitud de Gestión",
                "max_attention": 7,
                "reminder_days": 3,
                "color": "#f7d314"
            }
        },
        {
            "type": "attention_types",
            "id": "11",
            "attributes": {
                "id": 11,
                "name": "Indecopi",
                "max_attention": 15,
                "reminder_days": 3,
                "color": "#A01700"
            }
        }
    ]
}

Parámetros de retorno

Parámetro

tipo de dato

Descripción

id

integer

Id del tipo de atención

name

string

Nombre del tipo de la atención

max_attention

number

Máximo tiempo en contestar (días)

reminder_days

number

Recordatorio de la fecha límite (días)

color

string

Código de color

Mostrar tipo de atención

GET https://api.sperant.com/v3/attention_types/<id>

Permite obtener la información de una atención determinada.

Headers

Name
Type
Description

Authorization

string

Token entregado

{
    "data": {
        "type": "attention_types",
        "id": "2",
        "attributes": {
            "id": 2,
            "name": "Reclamo/Queja",
            "max_attention": 15,
            "reminder_days": 3,
            "color": "#f51919"
        }
    }
}

Parámetros de retorno:

Parámetro

Tipo de Dato

Descripción

id

integer

Id del tipo de atención

name

string

Nombre del tipo de la atención

max_attention

number

Máximo tiempo en contestar (días)

reminder_days

number

Recordatorio de la fecha (días)

color

string

Código de color

Última actualización