Use of the Supplier Data API with Pagination certificates Endpoint
The Supplier Data API with Pagination certificates endpoints use the GET method to send a JSON request to your site. The request returns header-level data for certificate questions.
The GET URL includes query and filter parameters, and the request header specifies authentication. The request returns header-level data for the specified certificate question, including the workspace ID for the project that includes the question. You can then use this ID to retrieve the certificate attachment as well.
|
Method |
Endpoint |
Pagination Limit Per Page |
Description |
|---|---|---|---|
|
GET |
{{runtime_URL}}supplierdatapagination/v4/prod/vendors/{SM vendor ID}/certificates |
100 |
Gets certificate question data for the specified vendor. |
For example, the following URL retrieves all of the certificate questions for a specific supplier:
GET {{runtime_URL}}supplierdatapagination/v4/prod/vendors/SM100015/certificates/?realm=mysitename
The following example shows one sample result for a GET to the certificates endpoint. Each result includes a HATEOAS (Hypermedia as the Engine of Application State) link to the certificate question.
{
"_embedded": {
"certificateResourceList": [
{
"vendorCertificateApi": {
"active": true,
"timeUpdated": 1525074049632,
"id": null,
"externalSystemCorrelationId": null,
"certificationType": null,
"certificationTypeOther": null,
"type": "ISO9001",
"effectiveDate": 1519891200000,
"expirationReminderDate": null,
"expirationDate": 1525071600000,
"issueDate": null,
"certificationNumber": "0897987876",
"authorityInfo": "ISO 9001",
"certificationName": null,
"certificationLocation": "Palo Alto",
"yearValid": "2017",
"orgId": null,
"objId": "AANcAe2GVM2LP",
"contentId": null,
"fileName": null,
"fileSize": 0,
"fileDescription": null,
"fileAbsolutePath": null,
"attachmentName": null,
"description": null,
"attachment": null,
"certified": null,
"workspaceId": "WS8350590",
"smVendorId": "S1830600",
"status": "Expired",
"qualificationStatus": "InQualification",
"expirationNotificationWindow": 45,
"expirationFlag": true,
"rootId": "68:VCer:178903"
},
"_links": {
"QuestionAnswers": {
"href": "https://svcmachss.ariba.com:80/SM/rest/smv1/vendors/S1830600/workspaces/WS8350590/documents/qna"
}
}
},
"_links": {
"self": {
"href": "https://svcmachss.ariba.com:80/SM/rest/smv1/vendors/S1830600/certificates"
}
},
...
}