Score

The Score module performs synchronous analysis of the received data, returning score and status within seconds.

How the Score Module Works

The score module operates synchronously, analyzing the data immediately after receiving a request. This process involves cross-referencing multiple relevant pieces of information to calculate the score and determine the status of the request.

The analysis response is returned within seconds, enabling fast decisions that are integrated into the application's flow, without the need for asynchronous processing or prolonged waiting.


Response POST

Represents the integration execution response. If you have contracted more than one module, you may receive all at once. Modules not contracted will not be returned.


Result

FieldDescriptionTypeRequired
executionIdExecution IDGuidYes
analysisIdAnalysis IDGuidYes
transactionIdTransaction IDStringYes
decisionDecision resultDecision ResultNo

Decision Result

Represents the result of a decision.

FieldDescriptionTypeRequired
statusDecision statusStringYes
scoreScore associated with decisionFloatNo

JSON

{
  "executionId": "string",
  "analysisId": "string",
  "transactionId": "string",
  "decision": {
    "status": "string",
    "score": 0.85    
  }
}

Response GET

Represents the execution response of the analysis query.


Result

FieldDescriptionTypeRequired
analysisIdAnalysis IDGuidYes
transactionIdTransaction IDStringYes
decisionDecision resultDecision ResultNo

Decision Result

Represents the result of a decision.

FieldDescriptionTypeRequired
statusDecision statusStringYes
scoreScore associated with decisionFloatNo

JSON

{
  "analysisId": "string",
  "transactionId": "string",
  "decision": {
    "status": "string",
    "score": 0
  }
}

Response Error

Represents the details of a problem returned by the API in case of error.

FieldDescriptionTypeRequired
typeURI identifying the specific problem type. Can be used to categorize the error.StringNo
titleDescriptive title of the problemStringYes
statusHTTP status code associated with the problemIntegerYes
errorsValidation errorsObjectYes
instanceURI identifying the specific instance of the problemStringNo

HTTP Status Codes

Represents the possible HTTP codes returned by the API in case of an error.

CodeNameMeaning
400Bad RequestThe request was malformed or contains invalid parameters
401UnauthorizedThe client is not authenticated or the token is invalid/expired
500Internal Server ErrorAn unexpected error occurred on the server
503Service UnavailableThe service is temporarily unavailable or under maintenance

JSON

{
    "errors": {
        "string": [
            "string"
        ]
    },
    "type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
    "title": "One or more validation errors occurred.",
    "status": 400,
    "traceId": "string"
}
{
    "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
    "title": "Internal server error",
    "status": 500,
    "detail": "The server encountered an unexpected condition that prevented it from fulfilling the request",
    "traceId": "string"
}