Retrieving a Single Supplier's Risk Exposure Using the Risk Exposure API

Use these steps to retrieve the overall, and category risk exposure for a single supplier that you monitor in SAP Ariba Supplier Risk. You can then integrate the information into other SAP Ariba applications.

Prerequisites

  • If not already done, a customer administrator or a member of the Supplier Risk Manager group completes the risk exposure configuration in SAP Ariba Supplier Risk. Refer to Topics About Configuring Risk Exposure for more information on configuring risk exposure.

  • For each supplier, determine the SM vendor ID. Refer to Supplier Data API with Pagination in the SAP Ariba Developer Portal.

    To export a list of the suppliers and SM vendor IDs, do the following:

    1. From the dashboard, navigate to SM Administration. Available paths depend on the groups your user belongs to.

      • In sites that include SM Administration, members of the SM Ops Administrator, SM ERP Admin, or Customer Administrator group can select Start of the navigation pathManage  Next navigation step SM AdministrationEnd of the navigation path.

      • Members of the Supplier Risk Manager group can access SM Administration from the SAP Ariba Supplier Risk dashboard: click the gear-shaped settings icon, then choose Start of the navigation pathImport data Next navigation step  Link to SM adminEnd of the navigation path.

    2. Click Data import or export.

    3. Depending whether you use SLP or SIPM, from the File type dropdown choose one of the following:

      • If you use SLP, choose Suppliers.

      • If you use SIPM, choose Suppliers from Sourcing.

    4. Click Export to generate a CSV file. You can find the SM vendor ID for each vendor in this file.

Context

The Risk Exposure API gets the result of the overall risk exposure and the category risk exposure for suppliers monitored in SAP Ariba Supplier Risk. The Risk Exposure API doesn't include risk incidents.

The risk exposure from the Risk Exposure API is based on the below thresholds resulting from your risk exposure configurations. The thresholds are used to determine the level of risk for that contributing factor. Each level of risk has an assigned value.
  • Unknown

    There isn't enough information to calculate the risk exposure, or there are no recent updates to the contributing factors for calculating the current risk exposure.

  • Low

    The supplier's level of risk exposure is low.

  • Medium

    The supplier's level of risk exposure is medium.

  • High

    The supplier's level of risk exposure is high.

This API endpoint retrieves overall and category risk exposure for only one supplier per request.

Procedure

  1. The administrator identifies the SM vendor ID and system realm for the supplier.
  2. The client application sends a request that passes the locale (optional), system realm, and the SM vendor ID using the GET /suppliers/{smVendorId}/exposures endpoint.
    GET {{runtime_url}}/suppliers/{smVendorId}/exposures
    	    {
                "name": "realm",
                "type": "string",
                "required": true,
                "in": "query",
                "description": "Identify the requested realm. For example, realm = s4All-3."
         	    },
         	    {
                "name": "smVendorId",
                "type": "string"
                "required": true,
                "in": "path",
                "description": "The supplier you are retrieving risk exposure history for.",
                "default": S12345678
    	    }
    
    Request Parameters

    Name

    Required?

    Description

    Accept-Language

    No

    The locale used to fetch the translated entity name.

    The default locale is en.

    Two locales can be specified as comma separated values. The second locale corresponds to the fallback locale.

    For more information, refer to Locale Settings for Risk Exposure API Responses.

    realm

    Yes

    The system realm where the supplier and risk exposure exist.

    smVendorId

    Yes

    The supplier you want the risk exposure for.

Results

On success, the response includes a 200 success code.

The response returns the results that match the criteria in the exposures block.

{
"realm": "s4All-3",
"smVendorId": "S12345678",
"erpVendorId": "TEST-1234-321",
"sourceSystem": "SAP",
"exposureId": 12345,
"exposureCalculationDate": "2022-11-21",
"exposure": 60,
"exposureLevel": 3,
"exposureLevelName": "MEDIUM",
"localizedExposureLevelName": "Medium",
"riskCategoryExposures": [
{
"name": "FINANCIAL",
"localizedName": "Financial",
"weight": 25,
"exposure": 30,
"exposureLevel": 60,
"exposureLevelName": "MEDIUM",
"localizedExposureLevelName": "Medium"
}
],
"responseTimeStamp": "2022-11-21",
"exposureConfigurationVersion": "33"
}		
			
Risk Exposure API Results

Properties

Definition

Realm

The realm where the risk exposure information was requested.

SM vendor ID

The supplier's ID in the SAP Ariba Supplier Risk system.

ERP vendor ID

The supplier's ID in the ERP system.

Source system

The system where the information was requested.

Exposure ID

A unique identifier created every time the risk exposure is calculated.

Exposure calculation date

The date the exposure was last calculated for the supplier.

Exposure

The overall risk exposure for the supplier. The value is a number between 1–100.

Exposure level

The value of the supplier's overall risk exposure level. A value range is assigned to each risk exposure level for high, medium, and low.

Exposure level name

The name of the supplier's overall risk exposure level. The overall level of risk exposure is high, medium, low, or unknown. Unknown risk exposure is due to lack of information for calculation or lack of recent updates.

Localized exposure level name

The translated name of the supplier's overall risk exposure level.

Risk category name

The name of the risk category.

Risk category localized name

The translated name of the risk category.

Risk category weight

The weight value of the risk category.

Risk category exposure

The category risk exposure for the supplier. Each category can have a value of 1–100.

Risk category exposure level

The value of the supplier's risk exposure level for the risk category. A value range is assigned to each risk exposure level for high, medium, and low.

Risk category exposure level name

The name of the supplier's exposure level for the risk category. The risk category level of risk exposure is high, medium, low, or unknown. Unknown risk exposure is due to lack of information for calculation or lack of recent updates.

Risk category localized exposure level name

The translated name of the risk category exposure level.

Response timestamp

The time when the information was retrieved from the system.

Exposure configuration version

The version of your risk exposure configuration that was used for the risk exposure information retrieved from the system.

On failure, the response includes an error message. Refer to Risk Exposure API Error Messages for a list of possible errors.