---
# System prepended metadata

title: Origination Process

---

# Origination Process

### Endpoint Origination Process
```
GET 

/centeo/contact/origination/{{uid}}
```
Retorna la informacion de cada paso en el proceso de originacion segun el producto al que pertenece la aplicacion.

### Response
```
{
    "success": true,
    "code": 0,
    "locale": "es",
    "message": "OK",
    "data": {
        "origination-process": [
            {
                "order": 1,
                "title": "Monto y plazo solicitado",
                "description": "5,000,000.00 a 6 meses",
                "tag": null,
                "percent": null,
                "show": true,
                "name": "credit",
                "status": "disable",
                "button": {
                    "name": "Editar",
                    "link": "/mi-cuenta/solicitar-credito",
                    "enable": false
                }
            },
            {
                "order": 2,
                "title": "Información de la empresa",
                "description": "Datos de la empresa, del representante legal y datos financieros.",
                "tag": null,
                "percent": null,
                "show": true,
                "name": "forms",
                "status": "check",
                "button": {
                    "name": "ver",
                    "link": "formulario",
                    "enable": false
                }
            },
            {
                "order": 3,
                "enable": false,
                "title": "Envío de documentos",
                "description": "Necesitamos algunos documentos para verificar la información.",
                "tag": null,
                "percent": null,
                "show": true,
                "name": "documents",
                "status": "disable",
                "button": {
                    "name": "ver",
                    "link": "solicitud-pre-aprobada",
                    "enable": false
                }
            },
            {
                "order": 4,
                "title": "Entrevista (Videollamada)",
                "description": "Queremos conocerte en detalle.",
                "tag": null,
                "percent": null,
                "show": true,
                "name": "interview",
                "status": "disable",
                "button": {
                    "name": "Hacer entrevista",
                    "link": "entrevista",
                    "enable": false
                }
            }
        ]
    }
}
```

## Endpoint Origination #Forms
```
GET centeo/contact/origination/{{uid}}/forms
```
Retorna la informacion de los formularios, busca segun el uuid de la aplicacion y el uuid del contact.

### Response
```
{
    "success": true,
    "code": 0,
    "locale": "es",
    "message": "OK",
    "data": {
        "informacion_empresa": {
            "social_reason": "xxxxx",
            "nit": "xxxxx",
            "address": "xxxxx",
            "constitution_date": "04/08/2016",
            "num_employees": 0,
            "code_ciiu": "xxx",
            "use": "ea61e252-dffc-4851-90a0-8f3f8579b49e",
            "bank": "64de71c4-a862-4f07-8529-7fec23cff673",
            "is_legal_representation": true,
            "is_owns": true
        },
        "informacion_representante_legal": {
            "name": "xxxx LEONOR",
            "last_name": "xxx xxxx",
            "birthdate": "11/06/1980",
            "general_doc_type_id": "26bffbdd-1a63-4e21-85ca-89d485434a39",
            "doc_nro": "xxxxxx",
            "expedition_date": "15/07/1998",
            "gender": "76641d89-0ba2-462a-a5c2-f5a3ef233d5e",
            "civil_state": "c7d2db7f-afa8-48d6-97f0-f05eaabc579b",
            "num_children": "2",
            "num_dependents": "1",
            "education_level": "6c088a56-1ffd-4402-90b1-a6a28f1941d8",
            "email": "xxxxxxx@GMAIL.COM",
            "cellphone": "xxxxxxx",
            "address": "xxxx 1 No 12-51",
            "stratum": "0",
            "mobile_plan": "post",
            "city_code": "279",
            "departament_code": "13"
        },
        "informacion_accionistas": {
            "income_monthly": "0ec14415-52f1-41c5-a0ef-6f3c82544825",
            "expenses_monthly": "6a4d21f0-18d5-45b4-a35f-ca85001c22da",
            "percentage_stock": "50",
            "share_holders": [
                {
                    "full_name": "xxxxx xxxxxx",
                    "cellphone": "xxxxxx",
                    "email": "xxxxx@gmail.com",
                    "percentage_stock": "50"
                }
            ],
            "full_name": "xxxxx xxxx xxxxx",
            "cellphone": "xxxxxx",
            "relationship": "PROVEEDOR"
        },
        "informacion_financiera": {
            "monthly_sales": 82000000,
            "monthly_fees": 0,
            "monthly_income": 0,
            "monthly_other_income": 200000,
            "monthly_expenses_sales": 22500000,
            "monthly_expenses_paysheet": 16563000,
            "monthly_expenses_financial": 1450000,
            "other_expenses": 0,
            "main_clients": [
                {
                    "main_client_name": "xxxxxx xxxxxx SAS",
                    "main_client_doc": "xxxxxxx",
                    "main_client_sale": xxxxxx
                }
            ],
            "main_providers": [
                {
                    "main_provider_name": "xxxxxx xxxx SA",
                    "main_provider_doc": "xxxxx",
                    "main_provider_sale": xxxxxxx
                }
            ],
            "web": "xxxxxxxx",
            "linkedin": null,
            "facebook": null,
            "twitter": null,
            "instagram": null
        }
    }
}
```

## Endpoint Origination #Forms For Section Name
```
GET centeo/contact/origination/{{uid}}/forms/{{section_name}}
```
Endpoint que retorna la informacion del formulario segun la seccion indicada

### Response

```
{
    "success": true,
    "code": 0,
    "locale": "es",
    "message": "OK",
    "data": {
        "social_reason": "xxx xxx xxxx SAS",
        "nit": "xxxxxx",
        "address": "xxx xxx No xxxxx",
        "constitution_date": "xxxxx",
        "num_employees": xxx,
        "code_ciiu": "xxx",
        "use": "xxxxxxxxxxxx",
        "bank": "64de71c4-a862-4f07-8529-7fec23cff673",
        "is_legal_representation": true,
        "is_owns": true
    }
}
```

## Endpoint Origination #Documents
```
GET centeo/contact/origination/{{uid}}/documents/process
```
Endpoint que retorna y procesa los documentos de una aplicacion y cambia el status de los documentos a 'credit-request-completed-documents'
#### Hallazgos
- Error - esta buscando en el archivo TraitProcces.php en la linea 44 por el core_uid y el valor que recibe la funcion es el core_uuid
- Busca y valida la existencia de la aplicacion en el core-banking y si la aplicacion tiene el status credit-request-completed-documents configurado para aplicarlo

### Response Error
```
{
    "success": false,
    "code": 13,
    "locale": "es",
    "message": "SDK.ZinCore.applicationProcess: No States were set for this product -",
    "data": null,
    "debug": {
        "trace": {
            "class": "Exception",
            "file": "/home/yohan/Documentos/Zinobe-Proyectos/admin-api/Modules/ZinCore/Base/SDK.php",
            "line": 70
        }
    }
}
```

## Endpoint de aplicaciones #Solicitudes
```
GET /contact/me/applications
```
End point para consultar todas las aplicaciones de un usuario, se debe iniciar sesion por eso no es necesario enviar parametros.

### Response
```
{
    "success": true,
    "code": 0,
    "locale": "en",
    "message": "OK",
    "data": {
        "applications": []
    },
    "pagination": {
        "currentPage": 1,
        "lastPage": 1,
        "perPage": 15,
        "count": 0,
        "total": 0
    }
}
```

## Endpoint para consultar el status y los productos que se han solicitado
Endpoint para obtener el status y los productos que se han solicitado por el usuario.
```
GET /contact/me/applications
```

```
{
    "success": true,
    "code": 0,
    "locale": "es",
    "message": "OK",
    "data": {
        "state": "active",
        "products": [
            {
                "slug": "microcredito"
            }
        ]
    }
}
```