Create a customer evaluation
POST / v1 / radar / customer_evaluations
Creates a new CustomerEvaluation object.
Parameters
- evaluation _ context array of objects Required Array of context entries for the evaluation.
- event _ type enum Required The type of evaluation event. Possible enum values
loginregistration
Returns
Returns a CustomerEvaluation object if creation succeeds.
cURL
Response
{ "id": "cuseval_123456789", "object": "radar.customer_evaluation", "event_type": "registration", "livemode": true, "created_at": 1715769600, "customer": "cus_123456789", "events": null, "signals": { "multi_accounting": { "score": 50.1, "evaluated_at": 1715769600, "risk_level": null } }}
Report an event on a customer evaluation
POST / v1 / radar / customer_evaluations /:id / report
Reports an event on a CustomerEvaluation object.
Parameters
- customer _ evaluation string Required The ID of the customer evaluation to report the outcome on.
- customer string The ID of a Customer to attach to an entity-less registration evaluation.
- status enum The outcome status of the evaluation: allowed, restricted, or blocked. Possible enum values
allowedblockedrestricted
Returns
Returns the CustomerEvaluation object if reporting succeeds.
cURL
Response
{ "id": "cuseval_123456789", "object": "radar.customer_evaluation", "event_type": "registration", "livemode": true, "created_at": 1715769600, "customer": "cus_123456789", "status": "allowed", "events": null, "signals": { "multi_accounting": { "score": 50.1, "evaluated_at": 1715769600, "risk_level": null } }}
