Report incorrect or missing enrichment data back to Triple, helping its models improve over time.
Summary
Functions
@spec report(Triple.Config.t(), map() | keyword()) :: {:ok, :no_content} | {:error, Triple.Error.t()}
Reports an issue with a previously-enriched transaction.
attrs matches Triple.Types.FeedbackRequest: transaction_id,
report, and response_value are required; feedback is an optional
free-text correction suggestion.
Returns {:ok, :no_content} on success (the API replies 204).
Examples
Triple.Feedback.report(client, %{
transaction_id: "txn_123",
report: :brand_name,
response_value: "AMZN MKTP UK",
feedback: "Should be Amazon"
})
#=> {:ok, :no_content}
@spec report!(Triple.Config.t(), map() | keyword()) :: :no_content
Same as report/2, but raises instead of returning {:error, _}.