# Set Up Rating Change Alerts Across a Vendor Portfolio source: https://developer.mastercard.com/riskrecon-api/documentation/tutorials-and-guides/rating-change-alerts/index.md ## Set Up Rating Change Alerts {#set-up-rating-change-alerts} Use the rating change alerts API to retrieve changes for vendors you can access and route them to your monitoring or vendor-risk workflow. ### Prerequisites {#prerequisites} Generate a JWT as described in the [Quick Start Guide](https://developer.mastercard.com/riskrecon-api/documentation/quick-start-guide/index.md). Set `RISKRECON_JWT` securely in your environment; do not commit it or log it. In the RiskRecon portal, configure the overall rating or security domain policy under **Alerts** \> **Alert Settings** . Alerts are user-specific and reflect those policies. See [Retrieve Rating-based Alerts](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/risk-mgmt-issue-rmdfn/alerting/rate-based-alerting/index.md). ### Retrieve Alerts {#retrieve-alerts} The endpoint supports date filters within a one-month period and pagination. `per_page` defaults to 20 and accepts up to 50. Valid `alert_types[]` values are `rating_improved`, `rating_dropped`, `low_threshold`, and `high_threshold`. Replace the example dates with the window you want to examine: ```bash curl --fail --show-error --silent --get \ 'https://api.sandbox.riskrecon.com/v1/alerting/rating_changes' \ --data-urlencode 'page=1' \ --data-urlencode 'per_page=20' \ --data-urlencode 'start_date=2023-07-08' \ --data-urlencode 'end_date=2023-08-06' \ --data-urlencode 'alert_types[]=rating_improved' \ --header 'accept: application/json' \ --header "Authorization: Bearer ${RISKRECON_JWT}" ``` Use `https://api.riskrecon.com` for production once access is enabled. Choose alert types that match your configured policy and monitoring needs; the example filters for improvements. The [alert sample](https://developer.mastercard.com/riskrecon-api/documentation/testing/alerting-samples/rcv-rtng-alrts-smpl/index.md) shows a response with `meta` pagination information and a `rating_change_alerts` array. The array can be empty. ```json { "meta": { "current_page": 1, "next_page": null, "prev_page": null, "total_pages": 1 }, "rating_change_alerts": [] } ``` This is a response excerpt; other metadata can also be present. Follow `meta.next_page` until it is `null`, retaining the same date window and filters. ### Alert Fields {#alert-fields} Each entry in `rating_change_alerts` describes one rating change. The following object uses illustrative values: ```json { "id": 20, "new": true, "seen": false, "company_name": "Vendor 1", "security_domain_key": "software_patching", "risk_structure": "Uncategorized", "alert_type": "rating_improved", "previous_rating": { "letter": "c", "value": "6.9" }, "new_rating": { "letter": "b", "value": "7.4" }, "rating_change": "0.5", "date": "2023-08-01", "current_analysis": "15" } ``` | Field | Type | Description | |---------------------------------------------------|---------|--------------------------------------------------------------------| | `id` | integer | The alert identifier. | | `new` | boolean | Whether the alert was found in the most recent scan. | | `seen` | boolean | Whether the alert has been marked as seen in the RiskRecon portal. | | `company_name` | string | The name of the company. | | `security_domain_key` | string | The security domain of the rating change. | | `risk_structure` | string | The category of the TOE. The default is Uncategorized. | | `alert_type` | string | The type of score change alert. | | `previous_rating.letter`, `previous_rating.value` | string | The letter and numeric rating before the change. | | `new_rating.letter`, `new_rating.value` | string | The letter and numeric rating after the change. | | `rating_change` | string | The difference between the previous and new ratings. | | `date` | string | The date of the alert. | | `current_analysis` | string | The current analysis ID for the TOE. | ### Poll and Route Results {#poll-and-route-results} 1. Schedule reads at an interval appropriate to your workflow, using date windows of no more than one month. 2. Process all pages before marking a window complete. If a request fails, retain the window for retry; use bounded backoff for transient failures and correct authentication errors before retrying. 3. Handle overlapping windows and repeated reads without creating duplicate downstream work. Use the alert `id` to recognize an alert you have already processed. Match each alert to your vendor record by `company_name` and flag unmatched records for review. 4. Route relevant changes to a GRC review queue, SIEM, procurement workflow, or data warehouse using your organization's integration tooling. Do not treat an empty response as proof that no vendor risk exists: policies, account access, and date filters affect the results. This guide uses polling. It does not assume a RiskRecon webhook is available; confirm any push integration with [RiskRecon customer care](mailto:support@riskrecon.com). ### Sample Workflows {#sample-workflows} These are integration patterns that you build, not claims of built-in connectors. * **ServiceNow or another GRC platform** : Create a review task for each `rating_dropped` or `low_threshold` alert, and record the alert `id` on the task. * **SIEM** : Forward each alert as an event that carries `company_name`, `security_domain_key`, `alert_type`, `previous_rating.value`, `new_rating.value`, and `date`. * **Procurement**: Notify the owner of the supplier relationship when an alert arrives for a supplier under onboarding or renewal review. * **Data warehouse** : Store every alert with its `id` and `date` to report on alert volume by vendor and security domain. To ingest the ratings themselves, see [Ingest Vendor Risk Ratings](https://developer.mastercard.com/riskrecon-api/documentation/tutorials-and-guides/vendor-risk-ratings-integration/index.md).