# Ingest Vendor Risk Ratings into GRC, SIEM, and Procurement Workflows source: https://developer.mastercard.com/riskrecon-api/documentation/tutorials-and-guides/vendor-risk-ratings-integration/index.md ## Ingest Vendor Risk Ratings {#ingest-vendor-risk-ratings} Use the RiskRecon vendor risk ratings API to bring portfolio rating changes into a governance, risk, and compliance (GRC) system, SIEM, procurement workflow, or data warehouse. This guide describes a customer-built integration; it does not require or imply a prebuilt connector. ### Before You Start {#before-you-start} You need a RiskRecon account, an accessible portfolio, and an OAuth 2.0 JWT. Follow the [Quick Start Guide](https://developer.mastercard.com/riskrecon-api/documentation/quick-start-guide/index.md) to generate a token. The sandbox contains static sample data and does not allow changes to its portfolio. Set `RISKRECON_JWT` securely in your execution environment; never commit it to source control or include it in logs. Send the JWT as a bearer token in the `Authorization` header of every request. See [API Basics](https://developer.mastercard.com/riskrecon-api/documentation/api-basics/index.md) for authentication and environment details. ### Retrieve Portfolio Rating Changes {#retrieve-portfolio-rating-changes} The portfolio ratings report compares current ratings with historical ratings for entities in your portfolio. This example requests the first page from the sandbox: ```bash curl --fail --show-error --silent --get \ 'https://api.sandbox.riskrecon.com/v1/reports/portfolio_ratings' \ --data-urlencode 'page=1' \ --data-urlencode 'per_page=20' \ --data-urlencode 'days_ago=360' \ --header 'accept: application/json' \ --header "Authorization: Bearer ${RISKRECON_JWT}" ``` For production, use `https://api.riskrecon.com` after obtaining access. A successful response contains a `data` array and `meta` information. The following is an excerpt of the [sample response](https://developer.mastercard.com/riskrecon-api/documentation/testing/portfolio-samples/get-port-ratings-rept-smpl/index.md): ```json { "data": [ { "internal_id": "Internal ID 1", "vendor_name": "Vendor 1", "start_rating": "3.0", "end_rating": "4.0", "rating_change": "1.0" } ], "meta": { "current_page": 1 } } ``` Process every page of the report according to the response and endpoint documentation. Treat rating values as returned rather than assuming a numeric JSON type, and preserve the comparison dates when recording a change. The historical rating is based on the analysis closest to the requested point in time. See [Portfolio Ratings Report](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/portfolio-management/portfolio/get-port-ratings-rept/index.md). ### Response Fields {#response-fields} The response contains these fields: | Field | Type | Description | |---------------------------------------------------------|------------------|-------------------------------------------------------------| | `data[].vendor_name` | string | Name of the vendor. | | `data[].internal_id` | string | The identifier you defined for the TOE. | | `data[].internal_name` | array of strings | The names you defined for the TOE. | | `data[].start_rating` | string | Rating at the start of the comparison period. | | `data[].end_rating` | string | Rating at the end of the comparison period. | | `data[].rating_change` | string | Change in rating between the start and end dates. | | `data[].start_date`, `data[].end_date` | string | Start and end dates of the rating period. | | `data[].folder` | string | Portfolio folder name. | | `data[].criticality` | string | Criticality level of the portfolio item. | | `data[].industry` | string | Industry category. | | `meta.current_page`, `meta.next_page`, `meta.prev_page` | integer | Current, next, and previous page numbers, where applicable. | | `meta.total_pages`, `meta.total_count` | integer | Total number of pages and total number of items. | Use `per_page` to request up to 250 records per page. The default is 20. Use `sort_attribute` (default `rating_change`) and `sort_method` (default `DESC`) to order the results. Read pages until `meta.current_page` equals `meta.total_pages`. ### Polling Guidance {#polling-guidance} This guide uses scheduled polling. It does not assume a RiskRecon webhook is available; confirm any push integration with [RiskRecon customer care](mailto:support@riskrecon.com). * For TOEs on [continuous assessment](https://developer.mastercard.com/riskrecon-api/documentation/glossary/index.md#assessment-frequency), RiskRecon scans approximately every two weeks. A daily or weekly read is enough to capture each new analysis. * Use `days_ago` to set the comparison point. The default is 360 days. * Record the retrieval time of each run so you can tell a new rating change from one you have already processed. ### Integrate the Results {#integrate-the-results} 1. Match each report record to your vendor record using a customer-managed identifier such as `internal_id` when available. Resolve missing or ambiguous matches rather than assuming vendor names are unique. 2. Store the rating, comparison period, source, and retrieval time. Apply your own access controls and data retention rules. 3. Use your organization's thresholds and review process to decide whether to create or update a task. Avoid creating duplicate tasks when the same data is fetched again. 4. Schedule subsequent reads according to your needs. Monitor failures, and retry transient failures with bounded backoff; do not retry an invalid or expired token without first correcting it. ### Sample Workflows {#sample-workflows} The following workflows show how to apply the steps above to common target systems. These are integration patterns that you build, not claims of built-in connectors or automatic decisions. #### ServiceNow or Another GRC Platform {#servicenow-or-another-grc-platform} 1. Run a scheduled job that reads every page of the portfolio ratings report. 2. Match `internal_id` to the vendor record in your GRC platform. 3. Write `end_rating`, `rating_change`, `start_date`, and `end_date` to the vendor record. 4. Create or update a review task when `rating_change` crosses the threshold your organization has set. Identify the task by vendor and `end_date` so a repeated read does not create a duplicate. #### SIEM {#siem} 1. Convert each report record into an event that carries `vendor_name`, `internal_id`, `end_rating`, `rating_change`, and `end_date`. 2. Forward the events using the ingestion method your SIEM supports. 3. Correlate a rating drop with other security signals for the same vendor. #### Procurement {#procurement} 1. Store your supplier identifier as the TOE `internal_id`. See [Update the Internal Identities of a TOE](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/portfolio-management/portfolio/update-a-toe-internal-id/index.md). 2. Match report records to supplier records on `internal_id`. 3. Present `end_rating` and `rating_change` to the reviewer during onboarding or renewal. See [Supplier Onboarding Security Posture](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/supplier-onboarding/index.md). #### Data Warehouse {#data-warehouse} 1. Load each page into a staging table together with the retrieval time. 2. Insert or update a history table identified by `internal_id` and `end_date`. 3. Report on rating trends by `folder`, `criticality`, or `industry`. To investigate a particular vendor, retrieve [TOE ratings](https://developer.mastercard.com/riskrecon-api/documentation/testing/toe-samples/get-toe-rating-smpl/index.md) and [action plan findings](https://developer.mastercard.com/riskrecon-api/documentation/testing/actionplan-samples/actnpln-fndg-smpl/index.md). For notification-oriented monitoring, see [Rating Change Alerts](https://developer.mastercard.com/riskrecon-api/documentation/tutorials-and-guides/rating-change-alerts/index.md).