Skip to main content

Reporting wrong results

The Ntropy API contains an endpoint to report incorrect values from the enrichment process. Values reported through this endpoint are part of the feedback loop that continuously improves our models and results.

Reporting a wrongly enriched transaction

If you find out that a transaction has been incorrectly labeled or a wrong merchant has been identified, you may submit that transaction for our review through the /v2/report endpoint or the sdk.report method with its respective transaction_id field:

$ curl \
-H "X-API-KEY: <YOUR-API-KEY>" \
-H "Content-Type: application/json" \
-X POST \
--data '{
"transaction_id": "ybx8YP14g565Xketw3t9x3tbj9mD8DB4fM8DDY6Y",
"merchant": "Other Merchant",
"website": "www.expected.website",
"notes": "some additional notes about that correction..."
}' \
https://api.ntropy.com/v2/report
from ntropy_sdk import SDK, Transaction, EnrichedTransaction

sdk = SDK("YOUR-API-KEY")
data = {
"transaction_id": "ybx8YP14g565Xketw3t9x3tbj9mD8DB4fM8DDY6Y",
}

t = EnrichedTransaction(sdk, **data)
t.report(
merchant="Other Merchant",
website="www.expected.website",
notes="some additional notes about that correction..."
)