Use of the Supplier Data API with Pagination versions Endpoint

The Supplier Data API with Pagination versions endpoint uses the GET method to send a JSON request to your site. The request retrieves process intake form details or questionnaire details in the latest or a specific version.

Method

Endpoint

Description

GET

{{runtime_URL}}/supplierdatapagination/v4/prod/vendors/{vendorId}/workspaces/questionnaires/{questionnaireId}/qna/versions

Retrieves process intake form details or questionnaire details in the latest version.

GET

{{runtime_URL}}/supplierdatapagination/v4/prod/vendors/{vendorId}/workspaces/questionnaires/{questionnaireId}/qna/versions/{versionId}

Retrieves process intake form details or questionnaire details in a specific version.

For example, the following URL retrieves questionnaire (with document ID Doc12345678) details in the latest version:
GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaires/Doc12345678/qna/versions
The following example shows a sample result for a versions endpoint:
{
    "versions": [
        {
            "versionId": 3,
            "questionAnswer": [
                {
                    "active": true,
                    "timeUpdated": 1645159731993,
                    "purgeState": null,
                    "lastTimePurgeStateUpdated": null,
                    "itemId": "7325",
                    "alternative": null,
                    "externalSystemCorrelationId": "KI_83610",
                    "processId": "PI22682",
                    "documentId": null,
                    "templateDocumentId": "Doc24008",
                    "searchTerm": null,
                    "answer": "All",
                    "enumerationCodeDelimiters": null,
                    "dataType": "String",
                    "multiValued": true,
                    "smVendorId": "S10040001",
                    "workspaceType": null,
                    "workspaceId": "WS24056",
                    "type": null,
                    "totalQuestions": "7",
                    "questionnaireLabel": "Intake form",
                    "questionLabel": "Category",
                    "answerType": "CommodityType",
                    "rootId": null,
                    "attachmentData": {
                        "fileName": "SMProcessFlowType (2).csv",
                        "mimeType": "text/csv",
                        "fileContents": null,
                        "comment": null,
                        "downloadUrl": "http://localhost:8150/Sourcing/Main/ad/downloadSMAttachment/ariba.sourcing.dashboard.SMMainActionsController?realm=s4All&docId=Doc21273&parentBid=AAAKAQXEYgBd&attachmentBid=AAAKANjEYgBr",
                        "fileSize": 176
                    },
                     "commentData": {
                        "attachmentData": {
                          "id": "string",
                          "fileName": "string",
                          "mimeType": "string",
                          "fileContents": "string",
                          "comment": "string",
                          "downloadUrl": "",
                          "fileSize": 0
                    },
                    "certificateData": {
                        "attachmentData": {
                          "id": "string",
                          "fileName": "string",
                          "mimeType": "string",
                          "fileContents": "string",
                          "comment": "string",
                          "downloadUrl": "",
                          "fileSize": 0
                    },
                 ]
           }
    ],
    "vendorInfo": {
        "smVendorId": "S10040001",
        "erpVendorId": "VDR160209",
        "acmId": "ACM_63"
    },
         "questionnaireVersion": {
          "id": 0,
          "timeUpdated": "string",
          "timeCreated": "string",
          "timeSubmmited": "string",
          "submittedFor": "string",
          "submittedBy": "string",
          "submittedForFullName": "string",
      }