Retrieving Attachments from Process Intake Forms or Modular Questionnaires Using the Supplier Data API with Pagination and External Approval API Integration
This topic explains how to use the Supplier Data API with Pagination to download attachments from process intake forms or modular questionnaires.
You have or obtain the SM vendor ID of the supplier whose information is to be retrieved.
Procedure
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
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
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.
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
Use the /{entity_type}/{entity_id} endpoint to retrieve the details for the intake form or questionnaire, including any attachment IDs. For example, you can retrieve attachment id Doc12345678, AANcAe2G2!4WA, AANcAH42!4Wg.
GET {{runtime_URL}}/entity.svc/RFXDcoument/Doc12345678