Custom Watchlist Webhooks

The following are the webhooks for the Custom Watchlist Tool. The webhooks have the following IDs:

custom-watchlists-validation

Step Completed

"step": {
  "status": 200,
  "id": "custom-watchlists-validation",
  "error": null,
  "data": [
    {
      "watchlist": {
        "id": 231,
        "name": "Watchlist 1"
      },
      "searchParams": {
        "fullName": "John Doe",
        "dateOfBirth": "01-01-1992"
      },
      "dataSource" : "custom-fields",
      "searchResult": null,
      "searchedAt": "2022-08-24T14:45:00.569Z"
    },
    {
      "watchlist": {
        "id": 470,
        "name": "Watchlist 2"
      },
      "searchParams": {
        "fullName": "John Doe",
        "dateOfBirth": "01-01-1992"
      },
      "dataSource" : "custom-fields",
      "searchResult": null,
      "searchedAt": "2022-08-24T14:45:00.983Z"
    }
  ]
}

Step Error

"step": {
  "status": 200, 
  "id": "custom-watchlists-validation", 
  "error": {
    "type": "StepError", 
    "code": "node.failed", 
    "message": "Cannot meet dependent node"
  }
}
"step": {
  "status": 200,
  "id": "custom-watchlists-validation",
  "error": {
    "type": "StepError",
    "code": "customWatchlists.skipped",
    "message": "No watchlists were enabled in flow"
  }
}
"step": {
  "status": 200,
  "id": "custom-watchlists-validation",
  "error": {
    "type": "StepError",
    "code": "customWatchlists.notEnoughParams",
    "message": "Not enough data to perform watchlists search"
  },
  "data": [
    {
      "watchlist": {
        "id": 258,
        "name": "Watchlist 3"
      },
      "searchParams": null,
      "documentType": "passport",
      "country": "MX",
      "dataSource" : "document-data",
      "searchResult": null,
      "searchedAt": null,
      "error": {
        "type": "StepError",
        "code": "customWatchlists.notEnoughParams",
        "message": "Not enough data to perform watchlists search"
      }
    },
    {
      "watchlist": {
        "id": 258,
        "name": "Watchlist 3"
      },
      "searchParams": {
        "fullName": "John Doe",
        "dateOfBirth": "01-01-1992"
      },
      "documentType": "national-id",
      "country": "MX",
      "dataSource" : "document-data",
      "searchResult": null,
      "searchedAt": "2022-07-12T14:55:18.014Z"
    }
  ]
}
"step": {
  "status": 200,
  "id": "custom-watchlists-validation",
  "error": {
    "type": "StepError",
    "code": "customWatchlists.matchesFound",
    "message": "User found in at least one watchlist"
  },
  "data": [
    {
      "watchlist": {
        "id": 426,
        "name": "Watchlist 4"
      },
      "searchParams": {
        "fullName": "John Doe",
        "dateOfBirth": "01-01-1992"
      },
      "documentType": "passport",
      "country": "MX",
      "dataSource" : "document-data",
      "searchResult": {
        "watchlistId": 450,
        "fullName": "John Doe",
        "dateOfBirth": "01-01-1992"
      },
      "searchedAt": "2022-05-24T14:45:00.414Z",
      "error": {
        "type": "StepError",
        "code": "customWatchlists.matchesFound",
        "message": "User found in at least one watchlist"
      }
    },
    {
      "watchlist": {
        "id": 426,
        "name": "Watchlist 4"
      },
      "searchParams": {
        "fullName": "Jack Doe",
        "dateOfBirth": "01-01-1992"
      },
      "documentType": "national-id",
      "country": "MX",
      "dataSource" : "document-data",
      "searchResult": null,
      "searchedAt": "2022-05-24T14:45:00.569Z"
    }
  ]
}

System Error

"step": {
  "status": 200, 
  "id": "custom-watchlists-validation", 
  "error": {
    "type": "SystemError", 
    "code": "system.internalError", 
    "message": "Step timeout"
  }
}
"step": {
  "status": 200, 
  "id": "custom-watchlists-validation", 
  "error": {
    "type": "SystemError", 
    "code": "system.internalError", 
    "message": "Internal error"
  }
}