Retrieval of Certificate Attachments from Supplier Management Questionnaires Using the Supplier Data API with Pagination and the External Approval API for Sourcing and Supplier Management
This topic explains how to retrieve certificate attachments from supplier management questionnaires.
Prerequisites:
Before starting this task, you must:
-
Obtain separate application keys for both the Supplier data API with Pagination and External Approval API for Sourcing and Supplier Management.
-
Complete prerequisites for use of these two APIs.
-
Use the vendorDataRequests endpoint to retrieve the SM vendor IDs for suppliers. For example:
GET {{runtime_URL}supplierdatapagination/v4/prod/vendorDataRequests/?realm=mysitenamemight retrieve a list of SM Vendor ID values that includes SM100015.
-
Use the Supplier Data API with Pagination /vendors/{vendor id}/certificates endpoint to retrieve header-level certificate data for all of the specified supplier's certificates, including their associated workspace (project) IDs. For example:
GET {{runtime_URL}supplierdatapagination/v4/prod/vendors/SM100015/certificates/?realm=mysitenamemight retrieve workspaceId WS9050423. -
Use the Supplier Data API with Pagination /vendors/{{vendor id}/workspaces/{workspace id}/qna endpoint to retrieve the supplier management questionnaire associated with the certificate-related workspace for the supplier. For example:
GET {{runtime_URL}}supplierdatapagination/v4/prod/vendors/SM100015/workspaces/WS9050423/questionnaires/qna/?realm=mysitenamemight retrieve survey id Doc7940301. -
Use the External Approval API for Sourcing and Supplier Management /{entity_type}/{entity_id} endpoint to retrieve the details for the supplier management questionnaire associated with the certificate, including any attachment IDs. For example:
GET {{runtime_URL}}/entity.svc/RFXDcoument/Doc7940301?realm=mysitenamemight retrieve attachment id Doc7940301,AANcAe2G2!4WA,AANcAH42!4Wg.
-
Use the External Approval API for Sourcing and Supplier Management {entity_type}/{entity_id}/attachments/{attachment_id} endpoint to download the certificate attachment. For example:
GET {{runtime_URL}}/entity.svc/RFXDcoument/Doc7940301/attachments/Doc7940301,AANcAe2G2!4WA,AANcAH42!4Wg&realm=mysitename.