Retrieving Process Intake Form Details or Questionnaire Details in a Specific Version Using the Supplier Data API with Pagination

This topic explains how to use the versions endpoints to retrieve process intake form details or questionnaire details in a specific version.

Prerequisites

You already have the SM vendor ID of the supplier whose information is to be retrieved.

Procedure

  1. Use the processes endpoint to request all process IDs for a supplier. For example, to return basic information about all processes for the supplier with SM vendor ID S10028001:
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/processes
  2. Use the processes/{wid} endpoint to request the documentation ID of the process intake form or questionnaire. For example, to return details for the process with workspace ID WS19708:
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/processes/WS19708
  3. Use the versions endpoint to request intake form details or questionnaire details in the latest version. For example, to return details of the intake form with document ID Doc12345678 for the supplier with SM vendor ID S10028001:
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaires/Doc12345678/qna/versions

    The process intake form details in the latest version are returned in the response. According to the latest version ID, you can know the number of versions that the intake form has.

  4. Optional: Use the versions/{versionId} endpoint to request intake form details or questionnaire details in a specific version, for example, version 3.
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaires/Doc12345678/qna/versions/3

Results

Intake form details or questionnaire details in the specific version are displayed in the response.