Method
predictFraud POST
Copy POST

Returns the probability of a transaction performed under a specific account being fraudulent or not. Note that the inputs to this method, wherever applicable, should be the column names in your dataset mapped to the column mappings in our system (e.g. column 'account_number' mapped to the mapping 'ACCOUNT_ID' in our system).

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes deploymentToken String A deployment token to authenticate access to created deployments. This token is only authorized to predict on deployments in this project, so it is safe to embed this model inside of an application or website.
Yes deploymentId Unique String Identifier A unique identifier to a deployment created under the project.
Yes queryData dict A dictionary containing transaction attributes (e.g. credit card type, transaction location, transaction amount, etc.).
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
FraudPrediction

Exceptions:

TYPE WHEN
DataNotFoundError

deploymentId is not found.

Language: