When implementing Creditsafe Connect's company monitoring functionality via its /monitoring endpoint it is advised that the following call sequence is initially adopted:
URI | HTTP METHOD
|
/monitoring/portfolios | POST |
/monitoring/eventRules | GET |
/monitoring/portfolios/{portfolioId}/eventRules/{countryCode} | PUT |
/monitoring/portfolios/{portfolioId}/companies | POST |
/monitoring/portfolios/{portfolioId}/notificationEvents | GET |
1. Create Portfolio
A portfolio must first be created via Creditsafe Connect by calling the following endpoint:
URI | HTTP METHOD |
/monitoring/portfolios | POST |
2. Get Event Rules
A list of all available notification event rules which can be applied to said portfolio can be retrieved from Creditsafe Connect by calling the following endpoint:
URI | HTTP METHOD |
/monitoring/eventRules | GET |
3. Activate Event Rules
Creditsafe Connect's "notificationEvents" will only be generated for said portfolio's active "eventRules" so if no "eventRules" are active then no "notificationEvents" will be created for said portfolio, "eventRules" can only be activated by calling the following endpoint:
URI | HTTP METHOD |
/monitoring/portfolios/{portfolioId}/eventRules/{countryCode} | PUT |
4. Add Company
Once "eventRules" have been activated, a "company" can then be added to said portfolio using the following Creditsafe Connect endpoint:
URI | HTTP METHOD |
/monitoring/portfolios/{portfolioId}/companies | POST |
5. Get Notification Events
Once "eventRules" have been activated and a "company" has been added to said portfolio, the following Creditsafe Connect endpoint should be called periodically to monitor if any "notificationEvents" have been generated for said "company" / "eventRules":
URI | HTTP METHOD |
/monitoring/portfolios/{portfolioId}/notificationEvents | GET |
Whilst this article covers off the fundamentals we strongly advise referring to Creditsafe Connect's documentation site using the following web link:
/monitoring