Credit Scoring
Este endpoint permite ver y procesar Credit Scoring de un RUT.
Detalle de API
Request
- URL:
/notification/creditScoring/{rut}/getByRut
- Método:
GET
Parámetros
rut
(requerido): El RUT del cual se desea extraer la información. Formato del rut "12345678-9".
Ejemplo request con curl
curl -X 'GET' \
'https://prod.api.thesheriff.cl/api/v1/notification/creditScoring/12345678-9/getByRut' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9EjemploDeToken123' \
-H 'x-client-identifier: SheriffSecureClient-v1'
Response
Success
- Status code: 200
- Example response body:
{
"success": true,
"data": {
"id": 326893,
"period": "2025-02",
"scrappedRutId": 94075,
"startOfActivities": true,
"financesPercentage": 0,
"financesNumerator": 0,
"financesDenominator": 0,
"financesWeighting": 0,
"judicialPercentage": 40.74074074074074,
"judicialNumerator": 11,
"judicialDenominator": 27,
"judicialBankruptcy": false,
"judicialWeighting": 44.44444444444444,
"pensionDefaultPercentage": 0,
"pensionDefaultCases": 0,
"laborFinesPercentage": 100,
"laborFinesAmount": 1311680,
"boletinLaboralPercentage": 0,
"boletinLaboralAmount": 0,
"laborCollectionWeighting": 0,
"commertialBulletinPercentage": 93.4613986157952,
"commertialBulletinAmount": 37524630,
"commertialBulletinWeighting": 9.807902076307194,
"numberOfHelpers": "3",
"classificationPercentage": 54.25234652075164,
"classificationLabel": "Critical",
"nameOfHelpers": [
"judicial",
"commertialBulletin",
"laborCollection"
],
"maxJudicialWeighting": 75,
"maxCommertialBulletinWeighting": 150,
"maxLaborCollectionWeighting": 75
}
}
Error
- Status code: 400
- Error: Data enviada es incorrecta o inexistente.
- Status code: 401
- Error: No autorizado.
- Status code: 404
- Error: Data no encontrada.
- Status code: 500
- Error: Server error