Use of the Supplier Data API queryQuestionnaireDetails Endpoint to Retrieve Supplier Management Questionnaire Details

The Supplier Data API queryQuestionnaireDetails endpoint uses a POST request that specifies authentication in the header and the supplier and questionnaire ID in the body.

Constructing the Request URL

The URL for requests to Supplier Data API queryQuestionnaireDetails endpoint is:
               {{runtime_URL}}/queryQuestionnaireDetails

You do not pass any parameters in Supplier Data API URLs.

Specifying Authentication Parameters in the Request Header

Questionnaire detail requests use the following parameters in the header of the request:

Parameter

Description

Authorization:Bearer

Your authorization token.

apiKey

Your application key. This key is automatically generated when you create a new application on the SAP Ariba Developer Portal, and is visible when you select your application in the Manage Applications area.

Content-Type

application/json

Specifying Supplier and Questionnaire ID Filters in the Request Body

You must specify smVendorId in the request body. You can only specify one smVendorId and one questionnaireId per request, but questionnaireId is not required, and if you do not filter by questionnaireId, the request returns details for all of the questionnaires associated with a supplier. You fetch smVendorId and questionnaireId values with a previous post to the searchSuppliers endpoint.

The following example shows the body of a request for a specific questionnaire:
{
	"smVendorId":"S1834105"
	"questionnaireId": "Doc13501"
}

The request returns a JSON response with details for each question in the questionnaire and its answer.

The following example shows the body of a request for all of a supplier's questionnaires:
{
	"smVendorId":"S1834105"
}

The request returns a JSON response with details for each question in all of the supplier's questionnaires, grouped by questionnaire.