Search Companies by Keyword
GET /api/active/buscarEmpresasContains/{keyWord}
Searches for active companies by business name (razonSocial) containing the keyword.
curl -X GET "https://api.investgo.com/api/active/buscarEmpresasContains/Tech" \
-H "Authorization: Bearer YOUR_TOKEN"
List Companies (Paginated)
GET /api/buscarEmpresas/{page}
Retrieves companies with pagination (6 per page).
curl -X GET "https://api.investgo.com/api/buscarEmpresas/0" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"content": [
{
"idEmpresa": 1,
"representanteLegal": "Carlos Mendoza",
"nomEmpresa": "Tech Solutions SAC",
"ruc": "20123456789",
"razonSocial": "Tech Solutions Sociedad Anónima Cerrada",
"fechaDeInicioActv": "2020-01-15",
"direccion": "Av. Principal 123, Lima",
"telefono": "987654321",
"correo": "[email protected]",
"sector": "Tecnología",
"fechRegistro": "2024-01-10",
"enable": "Activo",
"idRiesgo": 3
}
],
"totalPages": 3,
"totalElements": 15,
"pageNumber": 0,
"pageSize": 6
}
List Active Companies
GET /api/active/listaEmpresas
Retrieves all active companies (excludes “No Activo” companies).
curl -X GET "https://api.investgo.com/api/active/listaEmpresas" \
-H "Authorization: Bearer YOUR_TOKEN"
List All Companies
Retrieves all companies in the system.
curl -X GET "https://api.investgo.com/api/listaEmpresas" \
-H "Authorization: Bearer YOUR_TOKEN"
[
{
"idEmpresa": 1,
"representanteLegal": "Carlos Mendoza",
"nomEmpresa": "Tech Solutions SAC",
"ruc": "20123456789",
"razonSocial": "Tech Solutions Sociedad Anónima Cerrada",
"fechaDeInicioActv": "2020-01-15",
"direccion": "Av. Principal 123, Lima",
"telefono": "987654321",
"correo": "[email protected]",
"sector": "Tecnología",
"fechRegistro": "2024-01-10",
"enable": "Activo",
"idRiesgo": 3
}
]
Register Company
POST /api/registrarEmpresa
Creates a new company profile.
- Email, RUC, and business name (razonSocial) must be unique
- Registration date is automatically set to current date
- Status is automatically set to “Activo”
- Risk level (idRiesgo) is automatically set to 3 (medium risk)
Request Body
Legal representative’s name
Company tax ID (RUC - must be unique)
Business legal name (must be unique)
Business start date (format: yyyy-MM-dd)
Company email (must be unique)
curl -X POST "https://api.investgo.com/api/registrarEmpresa" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"representanteLegal": "Carlos Mendoza",
"nomEmpresa": "Tech Solutions SAC",
"ruc": "20123456789",
"razonSocial": "Tech Solutions Sociedad Anónima Cerrada",
"fechaDeInicioActv": "2020-01-15",
"direccion": "Av. Principal 123, Lima",
"telefono": "987654321",
"correo": "[email protected]",
"sector": "Tecnología"
}'
{
"mensaje": "Empresa registrada exitosamente",
"empresa": {
"idEmpresa": 1,
"representanteLegal": "Carlos Mendoza",
"nomEmpresa": "Tech Solutions SAC",
"ruc": "20123456789",
"razonSocial": "Tech Solutions Sociedad Anónima Cerrada",
"fechaDeInicioActv": "2020-01-15",
"direccion": "Av. Principal 123, Lima",
"telefono": "987654321",
"correo": "[email protected]",
"sector": "Tecnología",
"fechRegistro": "2024-03-15",
"enable": "Activo",
"idRiesgo": 3
}
}
Update Company
PUT /api/actualizarEmpresa
Updates an existing company profile.
Email, RUC, and business name must remain unique. Registration date and status are preserved from the original record.
Request Body
Updated legal representative name
Updated RUC (must be unique)
Updated business legal name (must be unique)
Updated business start date
Updated email (must be unique)
curl -X PUT "https://api.investgo.com/api/actualizarEmpresa" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"idEmpresa": 1,
"representanteLegal": "Carlos Mendoza García",
"nomEmpresa": "Tech Solutions SAC",
"ruc": "20123456789",
"razonSocial": "Tech Solutions Sociedad Anónima Cerrada",
"fechaDeInicioActv": "2020-01-15",
"direccion": "Av. Principal 456, Lima",
"telefono": "987654322",
"correo": "[email protected]",
"sector": "Tecnología",
"idRiesgo": 2
}'
{
"mensaje": "Empresa actualizada exitosamente",
"empresa": {
"idEmpresa": 1,
"representanteLegal": "Carlos Mendoza García",
"direccion": "Av. Principal 456, Lima",
"telefono": "987654322"
}
}
Delete Company (Soft Delete)
DELETE /api/eliminarEmpresa/{id}
Soft deletes a company by setting status to “No Activo”.
This is a soft delete - the company is marked as inactive but not removed from the database.
curl -X DELETE "https://api.investgo.com/api/eliminarEmpresa/1" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"mensaje": "Se elimino exitosamente la empresa"
}