Flag Customer

Endpoint to read a customer

Flag or remove fraud risk for a customer

POST https://api.waldo.ai/flag

Request Body

Field
Type
Description

customerId*

String

Waldo AI customer id

flag*

Boolean

The new risk fraud status (true or false)

note

String

Only when flag is set to true

Headers

Name
Type
Description

Authorization*

String

The token in the format Bearer eyJhbG...

Content-Type*

String

Expected type is application/json

Response

{
    "flagged": true,
    "status": "REJECTED",
    "externalId": "abcd-123-456-efgh",
    "customerId": "65f2ddf6cfcf6ee1fd726307",
    "uri": "https://app.waldo.ai/customers/65f2ddf6cfcf6ee1fd726307"
}

Webhooks event notification

{
    "event": "flag", 
    "flag": true,
    "externalId": "abcd-123-456-efgh",
    "customerId": "<customer-id>",
    "uri": "https://app.waldo.ai/customers/<customer-id>"
}

Last updated