Certification Intelligence
Maintain certification setup, optional date requirements, expiry notice settings, and pending or active records tied to the right business record.
Certification Intelligence connects discovery with certificate maintenance:
GET /certification-typeslists the organization's certification vocabulary.GET /certification-recordsfinds individual stored records.GET /certification-records/{recordId}returns one exact record.GET /certification-subjectsfinds customers, suppliers, products, customer addresses, warehouses, and supplier-product combinations with matching records.POST /certification-recordsfiles a certification record.PATCH /certification-records/{recordId}renews, reactivates, or completes a selected record.DELETE /certification-records/{recordId}removes one selected record.GET /certification-types?view=management, exact type reads, and type POST/PATCH/DELETE maintain certification settings.GET /certification-types/recipient-candidateslists current teammates available for expiry notice settings.PUT /certification-types/{typeId}/validity-date-policysets whether a type requires start and expiry dates.
Access
Record and subject reads, and the type list without view=management, require certifications:read plus the acting user's current access to the related customer, supplier, product, customer address, or supplier-product combination. Warehouse certification results also require warehouses:read and current Warehouse access. GET /me reports effectiveCapabilities.certifications.view and the available viewableSubjectTypes.
Filing, renewal, pending-record completion, and deletion use certifications:write with current subject viewing and edit access. Type management reads use certification-types:read or certification-types:write; setup writes use certification-types:write. Full-access keys include both new scopes. Restricted keys need explicit grants. These setup scopes do not grant record or subject access.
curl "$SHELFCYCLE_API_BASE_URL/certification-types?subjectType=supplier" \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY" \
-H "X-ShelfCycle-Client: Supplier quality workspace"
Carrier certifications
Certification types configured for carriers in ShelfCycle can be filed against suppliers with a carrier profile. Supplier certification reads include those types and records using the existing supplier subject. Configure and distinguish Carrier-targeted types in the app; the API's supplier subject alone does not identify that target. Sending the existing supplier subject when updating a type preserves its Carrier target.
Remove Carrier-targeted certification records before removing the supplier's carrier profile. The profile removal preview and execution return 409 carrier_certifications_exist with a count while those records remain. Ordinary supplier certifications do not cause that refusal. See Supplier carriers.
Learn the organization's vocabulary
Use GET /certification-types before a broad search when the workflow needs the exact type title or ID used by the organization.
{
"data": [
{
"id": "certification-type-id",
"title": "Third Party Audit",
"description": "Annual third-party quality audit",
"enabled": true,
"documentationRequired": true,
"validityDatesRequired": true,
"expiryNoticeDaysBefore": 30,
"subjectType": "supplier",
"type": "certification_type"
}
],
"meta": {
"populationCount": 8,
"returnedRecords": 1,
"complete": true,
"hasMore": false,
"nextCursor": null,
"evaluatedAt": "2026-08-24T16:30:00.000Z",
"requestId": "request-id"
}
}
Filter by subjectType using supplier, customer, product, customer_address, warehouse, or supplier_combination. Add includeDisabled=true only when the workflow needs historical type configuration. expiryNoticeDaysBefore supplies the notice window used to determine when a record is expiring.
Manage certification types
Use the management view to maintain configuration separately from the existing subject-oriented type list:
curl "$SHELFCYCLE_API_BASE_URL/certification-types?view=management&includeDisabled=true&limit=50" \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY"
curl "$SHELFCYCLE_API_BASE_URL/certification-types/recipient-candidates" \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY"
The management view supports titleQuery and includeDisabled, with limit from 1 to 100. Do not send subjectType in this view. Repeat the original view, filters, and limit when adding cursor. Exact GET /certification-types/{typeId} returns settings and updatedAt; recipient candidates contain only userId and displayName for current organization members.
Create a type with title, description, subjectType, enabled, and documentationRequired. subjectType uses the same six subject names as records. Optional expiryNoticeDaysBefore is 1 to 1825 days or null, and expiryNoticeRecipientUserIds selects current teammate IDs from the candidate list.
curl "$SHELFCYCLE_API_BASE_URL/certification-types?dryRun=true" \
-X POST \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: quality:supplier-audit-type-001" \
-d '{
"title":"Supplier audit",
"description":"Annual supplier quality audit",
"subjectType":"supplier",
"enabled":true,
"documentationRequired":true,
"expiryNoticeDaysBefore":30,
"expiryNoticeRecipientUserIds":[]
}'
After a ready preview, execute the same body and key without dryRun=true. A new type returns 201 created; an identical retry returns 200 replayed with the type's current settings. Reusing a key with a different request returns 409 idempotency_key_reused; a deleted or unavailable replay target returns 409 idempotency_target_unavailable. Titles may repeat, so retain IDs rather than treating titles as unique.
PATCH or DELETE the exact type with its current updatedAt as If-Match. PATCH is sparse: omitted settings remain unchanged, expiryNoticeDaysBefore: null clears the notice window, and expiryNoticeRecipientUserIds: [] clears recipients; omitting recipients preserves them. Identical changes write nothing, but type PATCH still requires the current timestamp. Unknown or departed recipients return 422 recipient_not_member.
Subject-type changes, disabling, and deletion follow current usage checks. A blocked change returns 422 certification_type_in_use with impactAnalysis.blockingCodes, such as has_certification_records or rule_references. DELETE removes only an unused type and its notice-recipient configuration. Missing or outdated timestamps return 409 stale_record. All type writes support dryRun=true; preview checks need the same key or timestamp to be ready.
GET /me reports setup availability under effectiveCapabilities.certifications.types and record create/update/remove availability under certifications.records, with matching write-readiness groups. These settings describe saved configuration, not confirmation that a notice has been sent.
Choose date requirements
API v1.65.1 adds validityDatesRequired to certification type reads. It defaults to true, requiring both start and expiry dates on active records. Set it to false for a type that permits a missing start date, missing expiry date, or both. Document requirements remain separate and continue to follow documentationRequired.
Read the type through GET /certification-types/{typeId} to obtain its current settings and updatedAt. Use certification-types:write for the policy change. Replace the example ID and timestamp with values from that read.
curl "$SHELFCYCLE_API_BASE_URL/certification-types/84bdbac3-166c-459d-b21a-fdc1b85b2259/validity-date-policy?dryRun=true" \
-X PUT \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY" \
-H "Content-Type: application/json" \
-H "If-Match: 2026-11-17T23:00:00.000Z" \
-d '{ "validityDatesRequired": false }'
Review the preview, then send the same body and timestamp without dryRun=true. Execution returns the current type settings with 200, including when the policy is already the same. Execution requires the current If-Match; a missing or stale timestamp returns 409 stale_record. This PUT does not use Idempotency-Key. The field is managed through this dedicated route; type POST and PATCH do not accept it.
When changing dates from optional to required, existing active certifications must have both dates. Likewise, making supporting documents required checks the active records' documents. A proposed requirement that existing active records do not meet returns 422 active_cert_requirements; preview and execution report impactAnalysis.missingValidityDates and missingDocumentation counts. Complete the affected records before applying the requirement. Relaxing a requirement allows the existing records to keep their saved values.
Active records without dates
Read the selected type's policy before filing or updating a record. When validityDatesRequired is false, send null for an absent day. Record POST still requires both validFrom and validTo properties in the body. Record PATCH preserves omitted days and uses explicit null to clear a day. An active record with no expiry remains current when the policy permits it; supplied days retain their usual validation and expiry behavior.
This example body files an active record without dates or a supporting document. Use it only with a type that allows optional dates and has documentationRequired: false, replacing the IDs with visible records in your organization:
{
"certificationTypeId": "84bdbac3-166c-459d-b21a-fdc1b85b2259",
"subject": {
"subjectType": "supplier",
"id": "294f00d4-0c5f-4fb5-a7c5-6c288e22f528"
},
"recordedStatus": "ACTIVE",
"validFrom": null,
"validTo": null,
"document": null
}
Find stored records
Use GET /certification-records to search individual certification rows. Common filters include:
| Filter | Use it for |
|---|---|
typeId or typeQuery | One exact certification type or matching type title and description. |
subjectTypes and subjectId | One or more business record classes, or one exact business record. |
recordedStatuses | Recorded PENDING, ACTIVE, or EXPIRED values. |
effectiveStates | Current interpretation at the response's exact evaluation time: pending, current, expired, or incomplete. |
renewalStates | Renewal timing at the same evaluation time: current, expiring, expired, renewed, or not_tracked. |
expiresAtOrAfter and expiresAtOrBefore | Exact date-time boundaries for expiration review. |
evidenceRecordedState | recorded, not_recorded, or invalid_metadata. |
evidenceFileNameQuery | An explicit filename search when the source wording points to a recorded filename. |
curl "$SHELFCYCLE_API_BASE_URL/certification-records?subjectTypes=supplier&subjectId=supplier-id&effectiveStates=current&limit=25" \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY"
{
"data": [
{
"recordId": "certification-record-id",
"resourceKind": "stored_certification_record",
"type": {
"id": "certification-type-id",
"title": "Third Party Audit",
"description": "Annual third-party quality audit",
"enabled": true,
"documentationRequired": true,
"expiryNoticeDaysBefore": 30,
"subjectType": "supplier"
},
"subject": {
"subjectType": "supplier",
"id": "supplier-id",
"displayName": "Northstar Chemical",
"externalId": "SUP-1042",
"archived": false,
"customerId": null,
"locationId": null,
"addressId": null
},
"recordedStatus": "ACTIVE",
"effectiveState": "current",
"renewalState": "expiring",
"daysLeft": 24,
"validFrom": "2026-01-01T00:00:00.000Z",
"validTo": "2026-12-31T23:59:59.000Z",
"recordCompleteness": "populated",
"evidence": {
"recordedState": "recorded",
"fileName": "northstar-third-party-audit-2026.pdf"
},
"matchBasis": ["unfiltered"],
"searchedFields": [],
"createdAt": "2026-01-02T14:00:00.000Z",
"updatedAt": "2026-01-02T14:00:00.000Z"
}
],
"meta": {
"populationCount": 1,
"returnedRecords": 1,
"complete": true,
"hasMore": false,
"nextCursor": null,
"evaluatedAt": "2026-08-24T16:30:00.000Z",
"currentState": true,
"snapshotIsolatedAcrossRequests": false,
"requestId": "request-id"
}
}
recordedStatus preserves the status stored on the record. effectiveState interprets the record at the exact meta.evaluatedAt time, including its expiration boundary. validFrom remains informational record context.
renewalState applies the certification type's expiryNoticeDaysBefore setting at the same evaluation time. daysLeft is the number of organization-calendar days until expiration. A past record reports renewed when a current certification of the same type exists for the same subject.
The evidence object reports whether a filename was recorded and returns that filename when available. Use it as stored record context. The certification endpoints do not return file links or file contents.
Certification results describe records stored in ShelfCycle. Present them as the organization's recorded certification information, with the returned status, dates, and evidence filename.
Find subjects with matching records
Use GET /certification-subjects when the workflow needs a customer, supplier, product, customer-address, warehouse, or supplier-product-combination view rather than one result per certification record. It accepts the same record filters and returns each available subject once.
curl "$SHELFCYCLE_API_BASE_URL/certification-subjects?typeQuery=Third%20Party%20Audit&effectiveStates=current&subjectTypes=supplier" \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY"
Each row includes matchingRecordCount, currentMatchingRecordCount, and latestCurrentValidTo. Use those returned counts directly when building summaries.
Warehouse subjects carry the warehouse identity. A supplier_combination subject carries a combination object with shipFromLocationId, shipFromLocationName, productId, and productDisplayName, so a workflow can keep the certification tied to the exact supplier origin and product.
For an exact subject question, first request that subject without a type or text filter to understand the complete visible record set. Then apply the requested type or date filters. This keeps a filtered zero result clearly tied to the selected subject and filter.
Inspect one exact record
After selecting a recordId, use GET /certification-records/{recordId} for the exact stored row:
curl "$SHELFCYCLE_API_BASE_URL/certification-records/certification-record-id" \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY"
The detail response uses the same type, subject, status, date, completeness, and evidence fields as the list row.
Continue and refresh
For certificate filing and renewal, use the write flow below after resolving the certification type and exact subject.
Continue with meta.nextCursor as cursor, keeping the first page’s filters and limit unchanged.
Certification records are read one page at a time. meta.populationCount and coverage.totalRecords are available only when the first page contains the complete matching result. Use returnedRecords, hasMore, and nextCursor for continued traversal.
Certification responses include meta.evaluatedAt, currentState: true, and snapshotIsolatedAcrossRequests: false. A continued traversal keeps its evaluation time for consistent effective-state interpretation. Restart from the original filters for a new current view.
File a certificate
Certificate writes require certifications:write, current viewing access to the subject, and permission to edit that subject. Supplier certificates use Supplier update permission; customers and customer addresses use Customer update; products use Product update. Supplier-product combinations require Supplier update and Product viewing access. Warehouse certificates additionally require warehouses:read, warehouses:write, and current Warehouse access.
Check GET /me for effectiveCapabilities.certifications.records.create, update, remove, and writableSubjectTypes. Use an enabled certification type that matches the subject type when filing or updating.
Upload a PDF, PNG, JPEG, or WebP through POST /document-uploads with documents:upload, send the file using the returned upload values, then copy the returned data.document into the request. See Attached documents for the upload steps. An ACTIVE record requires a supporting document when the type's documentationRequired is true; otherwise it can be omitted. Replace the example document below with the descriptor from your completed upload.
Send provided validFrom and validTo values as real YYYY-MM-DD calendar days in the organization's timezone. When the type requires dates, both must be present; when it allows optional dates, send null for an absent day. The API stores the start of each selected day and returns date-time values on reads. A record with validTo stops being valid at the start of that day; choose that boundary deliberately. A past validTo is refused.
curl "$SHELFCYCLE_API_BASE_URL/certification-records" \
-X POST \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"certificationTypeId": "certification-type-id",
"subject": { "subjectType": "supplier", "id": "supplier-id" },
"validFrom": "2026-10-14",
"validTo": "2027-10-14",
"document": {
"fileName": "supplier-certification.pdf",
"url": "<returned data.document.url>"
}
}'
Subjects can be supplier, customer, customer_address, product, warehouse, or supplier_combination. For a combination, id is the supplier ID and the subject also includes the exact ship-from location and product:
{
"subjectType": "supplier_combination",
"id": "supplier-id",
"combination": {
"shipFromLocationId": "ship-from-location-id",
"productId": "product-id"
}
}
POST returns 201 with status: "created". Repeating the same validity days, document, and recorded status returns 200 with status: "unchanged". If a different record already exists for that type and subject, 409 certification_record_exists includes impactAnalysis.existingRecordIds; read the selected record and update it through PATCH. This record flow uses the saved record for safe repeats and does not require Idempotency-Key.
Renew or complete a record
Read GET /certification-records/{recordId} with certifications:read to obtain the latest updatedAt. Send that value as If-Match, then PATCH at least one of recordedStatus, validFrom, validTo, or document. Omitted dates and document retain their values; explicit null clears them. recordedStatus accepts ACTIVE or PENDING and defaults to ACTIVE even on PATCH, so send PENDING explicitly to keep a pending record. The combined values must satisfy the requested status. This same operation can fill a pending placeholder, renew or reactivate an expired record, or correct dates.
curl "$SHELFCYCLE_API_BASE_URL/certification-records/certification-record-id" \
-X PATCH \
-H "Authorization: Bearer $SHELFCYCLE_API_KEY" \
-H "Content-Type: application/json" \
-H "If-Match: 2026-10-14T14:00:00.000Z" \
-d '{
"validFrom": "2026-10-14",
"validTo": "2027-10-14",
"document": {
"fileName": "renewed-certification.pdf",
"url": "<returned data.document.url>"
}
}'
A missing or outdated If-Match returns 409 stale_record when the request changes the record. Read again and review the current values before retrying. An exact request that changes nothing returns 200 unchanged, even without that header. Successful writes return the record detail, its status, and a verification GET path. Responses report the evidence filename without returning a file URL.
Pending records and removal
To file a pending record, POST the selected type and subject with recordedStatus: "PENDING", validFrom: null, and validTo: null. A pending record does not need the active record's required supporting document. To move an active record back to pending, explicitly clear both dates; a status-only PATCH does not clear existing values:
{
"recordedStatus":"PENDING",
"validFrom":null,
"validTo":null,
"document":null
}
Include the current If-Match for that change. To activate the pending record later, send the days required by its type policy and any required supporting document; omitted recordedStatus becomes ACTIVE. A type allowing optional dates can keep one or both days null on an active record. Expired status is maintained by ShelfCycle rather than accepted as a requested recordedStatus. Read again after a status change to obtain the latest timestamp.
Use DELETE /certification-records/{recordId} with certifications:write, current subject edit/visibility access, and the record's updatedAt in If-Match to remove one mistaken record. Preview first with ?dryRun=true; the operation is certification_records.delete. A disabled type does not prevent record deletion, but an archived holder returns 422 archived_record. A stale timestamp returns 409 stale_record, while an unavailable record returns 404 target_not_found_or_not_visible. This removes the record, not its certification type.
Preview and recover
Add ?dryRun=true to record POST, PATCH, or DELETE to preview the exact request. PATCH previews use the record's current If-Match when changing it; DELETE always needs that timestamp. Check data.status and the returned checks before applying the request without dryRun=true.
The record readiness operations are certification_records.create, certification_records.update, and certification_records.delete; type management uses certification_types.create, update, and delete. The date policy PUT uses certification_types.put_validity_date_policy. A blocked preview reports correction details without saving. For an impossible calendar date, fix the named validFrom or validTo; for a rejected file, send a fresh supported upload descriptor; for invalid_combination, correct the selected ship-from location or product.
Use the returned verification.path with certification read access for readback. For a batch of incoming files, process each file separately, record its outcome, and resume using the same intended dates and document.