> ## Documentation Index
> Fetch the complete documentation index at: https://tech.sedierp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Origenes de precontactos

> API de consulta de lista de origenes de precontactos

El servicio permite a los usuarios consultar el listado en linea en formato JSON.

El método de solicitud es POST y se requiere un encabezado "Authorization" para la autenticación, que debe contener un token **JWT** obtenido previamente del servicio de [autenticación](https://tech.sedierp.com/quickstart.md).

## Prerequisitos

Antes de realizar el registro de una factura de compra, se debe contar con los siguientes datos:

* Token solicitado mediante el API de [autenticación](https://tech.sedierp.com/quickstart.md)

## Como generar el token JWT

**Request URL:** https\://\{\{Ambiente}}/API\_CRM/api/OrigenesPrecontactos/OrigenesPrecontactosConsultar\
**Tipo:** POST \
**Content Type:** application/json

**OrigenPrecontactoID** `int`

Filtro de busqueda por nombre del origen del precontacto

**Nombre** `string`

Filtro de busqueda por nombre del origen del precontacto

```java theme={null}
curl --location 'https://nsx.sedierp.com/API_CRM/api/OrigenesPrecontactos/OrigenesPrecontactosConsultar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyAhbGci4iJkaXIiLCJlbmMiOiJBMjU2Q0JDLUhTNTEsadadad540..AYNuuCOK6ysnE908shjqQg.8LP_qwmbtbOt4cBFNAjJPuow4o1oTbxoGuEDSF6vAR2UZb8RZt5LbbcHEoOFiN-ll9U5tC0ts2V_L8K5B_Fax-StOtmcDhct-9lLIbQZKgy-q6hjW6Q0fAGtOadHmL8U9wGe4azpOKl_qZDxJNa4QWB5SLjxGG1nhxendUEUoeK_c5XDP1UWcgT0pmJCUFoYgcG4k2sCOtceiU9mPpfeGgAGBELW76x467lMFs-QqrzmG9xJ9NHF6-lE-Ll1HQ_PfkMWdKeoQvv1Yn4poAlAZti4cLGNeXx5MWe5YCDM0OVEHo-zB-vFdA17fXzvjliivUT35_VtPaXTxddbSECdewVg6ImxQUZVDHDD4eQ_z-sbGg3MVfRk5h2Lh9X5KhGXukipV4hXPfc-49-7qt7jeR47yxV4k9nM1jMmUP13e145pgI1qS5_X9_us3Ey89MoNX04M9M_vWgzrfh4YkD91jj0luAZtozBunSZpNcEDXNJpv2S45ILIDgW_X7BEqPcebShwP5iilTif54p_g53n4vAvKK-jfD15ZTdyosD3PL9dvXCaWDGfrTiKXXTnTB8XLcWPtrn3RShO3RgMIFpY91i4rXLuI9liVGUcZ-mA_lDHINwyzVq0v_3G79LlfSIXCucaFd76e7gVpYuvxIriZf5lENghVoynWtPUZ9GvzjETMb1SSEeyJxpsrrCZC0aUf6e_wJC2b0O9Pvdflr1hAxTinMCAOyjlt86Xh_5TCENsba9su4MAlnLEeuBJ2h59LL7svIcqxKoiiIvSWg1tvlMJlrZ76ziZUg1ogtBixvqVSAbndclrfm1bWQDYSBPMpQ-aKpszJ19XTZWTzvAFyGkMUwwVoCS2680fPPeLNA.IQCW29F4afyPu8sT3Xb6SmtAiY8d9L9cpPIe5uHfJ2w' \
--data '{
	"OrigenPrecontactoID": null, 
    "Nombre": null  
}'
```

```json Request theme={null}
{
	"OrigenPrecontactoID": null, 
	"Nombre": null  
}
```

```json Response theme={null}
{
    "total": 7,
    "rows": [
        {
            "OrigenPrecontactoID": 4,
            "Nombre": "Arrendatarios",
            "Icono": "fad fa-user"
        },
        {
            "OrigenPrecontactoID": 7,
            "Nombre": "Avaluos",
            "Icono": "fal fa-building"
        },
        {
            "OrigenPrecontactoID": 2,
            "Nombre": "Captaciones",
            "Icono": "fad fa-home"
        },
        {
            "OrigenPrecontactoID": 3,
            "Nombre": "Clientes",
            "Icono": "fad fa-user"
        },
        {
            "OrigenPrecontactoID": 1,
            "Nombre": "Storage avanzado",
            "Icono": "fal fa-cogs"
        },
        {
            "OrigenPrecontactoID": 6,
            "Nombre": "Storage estandar",
            "Icono": "fal fa-cogs"
        },
        {
            "OrigenPrecontactoID": 5,
            "Nombre": "Ventas",
            "Icono": "fad fa-user"
        }
    ],
    "result": 1
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.