Skip to content
Last updated

Global Monitoring Process Flow

The Global Monitoring API enables businesses to monitor portfolios of companies and receive notifications about critical changes. This document outlines the key steps to:

  • Authenticate
  • Set up portfolios
  • Manage event rules
  • View notifications.

Standard Integration Flow Diagram

Authenticate

Set Up Portfolio

Update Portfolio Details

Add Companies to Portfolio

Import Companies from File

Import/Sync Companies

View Event Rules

Activate Rules

View Notification Events

Reset Event Rules to Default

Authenticate

Set Up Portfolio

Update Portfolio Details

Add Companies to Portfolio

Import Companies from File

Import/Sync Companies

View Event Rules

Activate Rules

View Notification Events

Reset Event Rules to Default

Diagram summary (accessibility): Authenticate, then set up and update a portfolio. Next, add companies either individually, via file import, or via import/sync. Then view and activate event rules, review notification events, and reset rules to default when needed.


1. Authenticate

Before using any of the endpoints, you must authenticate. This ensures you have the necessary permissions to access the data.

Example Request

POST /authenticate

2. Create Monitoring Portfolio

This endpoint is to create the portfolio, it can hold any number of companies that are required to be monitored.

More than one portfolio can be made to group companies under common rules that you wish to monitor them.

Example Request

POST /monitoring/portfolios

Example requestBody

{
  "name": "Test Portfolio",
  "isDefault": false,
  "emails": [
    {
      "firstName": "John",
      "lastName": "Doe",
      "emailAddress": "john.doe@example.com"
    }
  ],
  "emailSubject": "Creditsafe Monitoring Notification on portfolio {{portfolioName}}",
  "emailLanguage": "en",
  "frequency": "1"
}

Key Details

  • The name field is required and should be meaningful for easy identification. Portfolio names must be unique for each user: a second portfolio with the same name returns 409 "Portfolio with given name already exists.".
  • The frequency property must be set to "1" to activate email notifications.
  • Upon success, the response will include a unique portfolioId that is essential for future interactions.

Example Response

{
  "correlationId": "14cc64a0-c108-11ea-b9af-06bcc69a383e",
  "portfolioId": 131318,
  "name": "Test Portfolio",
  "isDefault": false
}

3. Update Portfolio Details

To update portfolio details, such as email notifications or other properties, use the following endpoint.

Example Request

PATCH /monitoring/portfolios/{portfolioId}

Key Details

  • Include the portfolioId in the URL path to identify the portfolio to update.
  • The frequency property must be set to "1" to activate email notifications.
  • name is required in every update, even if it isn't changing. Without it the response is 400.
  • Send the full emails list in every update. To remove all the recipients, send "emails": [].
  • A successful update returns 200 with a message, for example {"correlationId": "…", "message": "Portfolio 131318 updated"}.

Example requestBody

{
  "name": "Test Portfolio",
  "emails": [
    {
      "firstName": "John",
      "lastName": "Smith",
      "emailAddress": "john.smith@example.com"
    }
  ],
  "frequency": "1"
}

Adding Companies to a Portfolio

There are three different ways to add companies to a portfolio:

  1. Add Single Company: Add individual companies to the portfolio using their unique identifiers.
  2. Import Companies: Upload a file (e.g., .csv) containing multiple companies to add them in bulk.
  3. Sync Portfolio: Replace all existing companies in the portfolio with the contents of an uploaded file.

NOTE:
The Sync Portfolio option has a different outcome compared to the other methods. It deletes all previously allocated companies in the portfolio and replaces them with the new file contents. Import and Sync are described in Import and Sync Companies.

Now that you understand the available methods, proceed to the next section for details on how to add companies to a portfolio.


4. Add Companies to Portfolio

Companies can be added to a portfolio individually or in bulk. Below are the available methods:

  1. Add Single Company: Add individual companies to the portfolio using their unique identifiers.
  2. Import or Sync Companies: Upload a file (e.g., .csv) containing multiple companies to add them in bulk or replace the existing portfolio contents.

NOTE:
The Import and Sync options, along with detailed guidance on file formats, best practices, and processing considerations, are documented in the Import and Sync Companies section of the product documentation.


Add Single Company

This method allows you to add individual companies to a portfolio using their unique identifiers.

Example Request

POST /monitoring/portfolios/{portfolioId}/companies

Example requestBody

{
  "id": "GB-0-12345678",
  "personalReference": "Key supplier",
  "freeText": "Review in January",
  "personalLimit": ""
}

Key Details

  • All properties in the requestBody are required. If there is no data for a property, you must pass an empty string (""). null isn't accepted, and returns 400.
  • The id field is the company's connectId or Safe Number.
  • The company's country must be covered by Global Monitoring (see Monitoring Coverage). Otherwise the response is 400, for example "BR country is not supported".
  • Adding a company that's already in the portfolio returns 409, for example "Company UK12345678 already in portfolio".
  • personalReference keeps up to 150 characters.
  • The personalReference and freeText fields are intended for internal references and notes, allowing you to track additional information about the company.
  • personalLimit:
    It is important to note that the personalLimit is not part of the credit limit associated with the company. Instead, it represents a limit you set internally for your own record-keeping purposes. Send it as a number in a string, for example "10000". It's stored to 2 decimal places.

To change these fields later, use PATCH /monitoring/portfolios/{portfolioId}/companies/{companyId} with all three of personalReference, freeText and personalLimit. In an update, "" clears the limit.

By using this endpoint, you can efficiently add individual companies to your portfolio, tailoring the information to suit your specific requirements.


5. View Available Event Rules

When applying event rules to a portfolio for monitoring, it is important to understand which rules are applicable to the companies within that portfolio. There are multiple ways to view available event rules, depending on your specific needs:


  1. The Rules Set on a Portfolio:
    This endpoint returns the portfolio's setting (isActive and the parameters) for every rule: the global (XX) rules and the rules of every country, whichever countries the portfolio's companies are in. Use it to see what's switched on.

    Endpoint

    GET /monitoring/portfolios/{portfolioId}/eventRules

By using this endpoint:

  • You see the portfolio's current setting for each rule, so you can check what's active before and after an update.
  • The list isn't filtered by the portfolio's companies. To see only the rules that matter, get the countries in the portfolio with GET /monitoring/portfolios/{portfolioId}/countries, and then the rules for each of those countries (see View Rules for a Specific Country below).

Example Response

[
  {
    "isActive": 0,
    "ruleCode": 101,
    "ruleCountryCode": "XX",
    "ruleType": 4,
    "ruleTypeName": "Rating band change - 3 input",
    "name": "International Score  |{2} Return Band(A-E) |Reduce by {0} Band(s) OR Less than Band {1}",
    "param0": "1",
    "param1": "A"
  },
  {
    "isActive": 0,
    "ruleCode": 102,
    "ruleCountryCode": "XX",
    "ruleType": 5,
    "ruleTypeName": "Limit value change - 3 input",
    "name": "Limit |{0} Any |Reduce by {1}% OR Less than {2}",
    "param0": "True"
  }
]

Explanation of Properties

  • isActive: Indicates the status of the rule. 0 means inactive, and 1 means active.
  • ruleCode: Unique identifier for the rule. Codes starting with 10 are global rules that apply universally to all countries.
  • ruleCountryCode: Represents the country code for the rule. XX indicates global applicability, while specific country codes (e.g., GB for Great Britain) apply to companies in that country.
  • ruleType: Numerical representation of the rule type.
  • ruleTypeName: Descriptive name of the rule type, making it easier to understand the event being monitored.
  • name: Describes the event notification triggers for the rule, including any required parameters (param0, param1, param2).
  • exclusiveRuleCode: returned on some country rules only. It's the global rule that the country rule overlaps: 101 (International Score) for local rating rules, and 102 (Limit) for local limit rules.

NOTE: For additional information on rules that require parameters (param0, param1, param2), refer to the Special Event Rules Documentation.


  1. View Rules for a Specific Country: If you want to see the rules available for a particular country included in your portfolio, you can use the following endpoint:

Endpoint

GET /monitoring/portfolios/{portfolioId}/eventRules/{countryCode}

By specifying the countryCode in the URL path (e.g., GB for Great Britain), the API will return the global (XX) rules and the rules for that country, with the portfolio's setting for each. This approach is useful when you need to focus on country-specific rules.

Use an upper-case ISO 3166-1 alpha-2 code, for example GB.


  1. View All Available Rules: For a more comprehensive view, you can call the endpoint that provides a complete list of all available rules. This method is less targeted but allows you to explore all rules, regardless of their applicability to your portfolio.

Endpoint

GET /monitoring/eventRules

This endpoint is ideal if you want to review the full range of event rules supported by the API.

Key Recommendations

  • Use View Rules for a Specific Country for each country in the portfolio (from GET /monitoring/portfolios/{portfolioId}/countries) to see the rules that apply to its companies.
  • Use The Rules Set on a Portfolio to check which rules are active across the whole portfolio.
  • Refer to the Special Event Rules Documentation for detailed guidance on rules requiring parameters (param0, param1, param2) and how to configure them effectively.

By leveraging these endpoints, you can efficiently manage event rules for your portfolio, ensuring that your monitoring setup is tailored to your specific requirements.


6. Activate Event Rules

Activating event rules for a portfolio is a critical step in setting up monitoring. This section outlines the best practices and methods for activating rules, ensuring they are applied correctly to your portfolio.

Endpoint

PUT /monitoring/portfolios/{portfolioId}/eventRules/{countryCode}

Key Details

  • Replace {portfolioId} with the unique identifier of the portfolio.
  • Replace {countryCode} with: -XX for Global Rules (rules that apply to all countries in the portfolio). -A specific country code in upper case (e.g., FR for France) for Local Rules.
  • A successful update returns 204, with no body.

Example requestBody

[
  {
    "ruleCode": 101,
    "isActive": 1,
    "param0": "",
    "param1": "Any",
    "param2": "true"
  }
]

Explanation of Properties

  • ruleCode: The unique identifier for the rule you want to activate.
  • isActive: Set to 1 to activate the rule or 0 to deactivate it.
  • param0, param1, param2: For a rule that has parameters, send all of its parameters every time you send the rule, as strings, including when you're only switching the rule on or off. For rules that do not require parameters, omit these fields.

Global vs. Local Rules

  1. Global Rules:
    • Use XX as the countryCode in the endpoint.
    • Global rules apply to all countries in the portfolio.
    • Example Global Rule Codes: 101, 102, 104, 105, 106, 107.

Example Global Rule Endpoint:

PUT /monitoring/portfolios/{portfolioId}/eventRules/XX
  1. Local Rules:

    • Use the specific country code (e.g., FR for France) in the endpoint.
    • Local rules apply only to companies in the specified country.

Example Local Rule Endpoint:

PUT /monitoring/portfolios/{portfolioId}/eventRules/FR

Important:
Send global rules to XX and local rules to their own country code. Read the rules back after every update to check the result.

Best Practices for Activating Rules

  1. Send the Rules You're Changing, with All Their Parameters:
    Rules you don't send keep their current setting, so you don't need to resubmit the entire list. For each rule you do send, include isActive and all of its parameters.

  2. Verify Changes: After activating or updating rules, verify the active rules for your portfolio by calling the View Available Event Rules endpoint:

  3. Use Parameters Where Required: Some rules require additional parameters (param0, param1, param2) to function. For detailed guidance on parameterized rules, refer to the Special Event Rules Documentation.

Example Workflow

  1. Retrieve Applicable Rules:
    Use the View Available Event Rules endpoint to get a filtered list of rules for your portfolio.

  2. Prepare the Request Body:
    Include the ruleCode, isActive, and any required parameters (param0, param1, param2) in the request body.

  3. Activate Rules:
    Send a PUT request to the appropriate endpoint (XX for global rules or a specific country code for local rules).

  4. Verify Activation:
    Call the View Available Event Rules endpoint again to confirm that the rules have been successfully activated.

Additional Notes

  • Error Handling:
    If an error occurs during activation, review the request body and ensure all required fields are included. For rules requiring parameters, verify that the correct values are provided.

  • Parameters:
    Always include each rule's parameters when you send it, using the values in the Special Event Rules.

By following these best practices and using the provided endpoints effectively, you can tailor the monitoring capabilities of the API to meet your specific business requirements.


7. View Notification Events

The Global Monitoring API provides multiple ways to view notification events, allowing you to track changes and updates across portfolios and companies. This section outlines the available endpoints and their use cases.


1. View Notification Events for a Portfolio

To view all notification events that have occurred within a specific portfolio, use the following endpoint:

Endpoint

GET /monitoring/portfolios/{portfolioId}/notificationEvents

Key Details

  • Replace {portfolioId} with the unique identifier of the portfolio.
  • This endpoint provides a comprehensive list of all notification events for the specified portfolio, including:
    • Credit limit changes
    • Company updates
    • Other critical information related to the companies in the portfolio

Example Use Case

This endpoint is ideal for monitoring changes within a specific portfolio, enabling you to stay updated on relevant events and respond to developments in a timely manner.

2. View All Notification Events Across Portfolios

To view all notification events across all portfolios, use the following endpoint:

Endpoint

GET /monitoring/notificationEvents

Key Details

  • This endpoint retrieves a consolidated list of all notification events triggered by enabled rules across all portfolios.
  • It is useful for gaining a high-level overview of all monitored activities without focusing on a single portfolio.

Example Use Case

Use this endpoint to monitor global changes across your entire portfolio structure, ensuring no critical updates are missed.

3. View Notification Events for a Company in a Portfolio

To view the notification events for one company in a portfolio, use the following endpoint:

GET /monitoring/portfolios/{portfolioId}/companies/{companyId}/notificationEvents

4. View the Number of Notification Events per Day

To see how many notification events a portfolio had on each day, use the following endpoint. Both startDate and endDate are required.

GET /monitoring/portfolios/{portfolioId}/notificationEvents/dataByDay?startDate=2026-10-25&endDate=2026-11-25

5. View the Events for a Specific Company

To view the events for a specific company, use the following endpoint:

Endpoint

GET /monitoring/companies/{id}/events

Key Details

  • Replace {id} with the unique identifier of the company.
  • Events are only returned for a company that's in at least one of your portfolios. For any other company the response is 200 with an empty list, not an error.
  • This endpoint provides detailed event information specific to the company, such as:
    • Credit score changes
    • Status updates
    • Other company-specific notifications

Example Use Case

This endpoint is ideal for tracking changes and updates for a specific company, allowing you to focus on individual entities within your portfolios.

Best Practices for Viewing Notification Events

  1. Use Portfolio-Specific Events for Targeted Monitoring:
    Start with the portfolio-specific endpoint to focus on changes relevant to a particular portfolio.

  2. Leverage Global Events for a Broader View: Use the all-events endpoint to gain a comprehensive overview of all notifications across your portfolios.

  3. Drill Down to Company-Level Events When Needed: For detailed insights into a specific company, use the company-specific endpoint.

  4. Verify Enabled Rules:
    Ensure that the appropriate event rules are enabled for your portfolios to capture the desired notifications. Refer to the Activate Event Rules section for guidance.

  5. Filter by Date:
    The notification event lists and company events take startDate and endDate. Send a date, for example 2026-11-25; a date and time is also accepted, for example 2026-11-25T09:30:00Z.

Example Workflow

  1. Monitor Portfolio Events: Use the portfolio-specific endpoint to track changes within a specific portfolio:
GET /monitoring/portfolios/{portfolioId}/notificationEvents
  1. Review All Events: Use the global events endpoint to review all notifications across portfolios:
GET /monitoring/notificationEvents
  1. Focus on a Specific Company: Use the company-specific endpoint to track updates for an individual company:
GET /monitoring/companies/{id}/events

By leveraging these endpoints effectively, you can stay informed about critical changes and updates, ensuring that your monitoring setup is tailored to your business needs.


8. Reset All Event Rules to Default

Resetting all event rules to their default state is a significant action that disables all event monitoring for the specified portfolio. This endpoint is useful if you want to temporarily pause monitoring or start with a clean slate.


Endpoint

PUT /monitoring/portfolios/{portfolioId}/eventRules/setDefault

Key Details

  • Replace {portfolioId} with the unique identifier of the portfolio.
  • This endpoint sets all event rules within the portfolio to Off, effectively disabling all event monitoring for the companies in the portfolio.
  • It also resets each rule's parameters to their defaults. For example, rule 101 goes back to param0: "1" and param1: "A", and rule 102 to param0: "True".
  • A successful reset returns 204, with no body.

Example Use Case

  • Pause Monitoring: Temporarily disable all event rules for a portfolio while retaining the portfolio structure.
  • Start Fresh: Reset all rules to their default state before reconfiguring and activating specific event rules.

Important Notes

  1. Significant Action:
    Resetting all event rules will disable monitoring for all companies in the portfolio. Use this endpoint judiciously and ensure you understand its implications.

  2. Reactivation Required:
    After resetting, you will need to manually activate the desired event rules again. Refer to the Activate Event Rules section for guidance.

Example Workflow

  1. Reset Rules: Send a PUT request to the endpoint to reset all event rules for the portfolio:
PUT /monitoring/portfolios/{portfolioId}/eventRules/setDefault
  1. Verify Reset: Use the View Available Event Rules endpoint to confirm that all rules have been disabled:
GET /monitoring/portfolios/{portfolioId}/eventRules
  1. Reconfigure Rules: After resetting, reconfigure and activate the required rules using the Activate Event Rules endpoint.

By using this endpoint effectively, you can manage your portfolio's event rules with flexibility, ensuring that your monitoring setup aligns with your business needs.


9. Move, Copy and Remove Companies, and Delete a Portfolio

TaskEndpointNotes
Copy companies to other portfoliosPOST /monitoring/portfolios/{portfolioId}/companies/copySend portfolios and companies, or only portfolios with copyAll=true to copy every company.
Move companies to other portfoliosPOST /monitoring/portfolios/{portfolioId}/companies/removeSend portfolios and companies, or only portfolios with removeAll=true to move every company.
Remove companies from a portfolioPATCH /monitoring/portfolios/{portfolioId}/companies/clearSend companies as a list of ids, or clearAll=true with no companies to empty the portfolio.
Remove one companyDELETE /monitoring/portfolios/{portfolioId}/companies/{companyId}
Delete a portfolioDELETE /monitoring/portfolios/{portfolioId}The portfolio's companies are removed with it.

Key Details

  • Every one of these acts on the portfolio in the path only. There's no endpoint that deletes all portfolios at once.
  • For copy and move, a target portfolio that already holds a company is skipped: the response counts the pairs requested (totalPortfoliosCompanies) and the pairs done (successfulPortfoliosCompanies). When every target already holds the companies, the response is 409 "PortfolioCompanies already Exist".
  • For clear, copy and move, send either companies or the …All=true switch.
  • When you remove a company that's also in another of your portfolios, the message says the monitoring credit wasn't decremented, because the company is still monitored there.