Skip to main content

Certification

Represents certification records awarded to a company, either at the organisation, location or product (type) level.

The certification Object​

Certifications store information about standards compliance, certification bodies, validity periods, and the covered entities (organisations, locations, products).

Field NameTypeDescription
iduuidPrimary key for the certification.
user_createdobjectUser who created the certification. Read-only. Links to directus_users.
date_createddatetimeTimestamp in ISO 8601 when the certification was created. Read-only.
user_updatedobjectUser who last updated the certification. Read-only. Links to directus_users.
date_updateddatetimeTimestamp in ISO 8601 when the certification was last updated. Read-only.
certification_agencystringName of the certifying agency or body.
certification_agency_urlstringURL for the certifying agency.
certification_start_datestringDate the certification became valid (ISO 8601 date, e.g., "2024-05-02").
certification_end_datestringDate the certification expires (ISO 8601 date).
initial_certification_datestringDate the certification was first granted (ISO 8601 date).
certification_audit_datestringDate of the most recent audit (ISO 8601 date).
certification_identificationstringUnique identifier or certificate number assigned by the certifying body.
certification_standardstringName of the standard or program being certified (e.g., "USDA Organic").
certification_statementstringFull text of the certification statement.
certification_statusstringCurrent status of the certification (e.g., "ACTIVE", "EXPIRED").
certification_typestringType or category of the certification (e.g., "Organic", "Fair Trade").
certification_uristringURL to verify the certification with the issuing agency.
certification_valuestringOutcome or result value of the certification (e.g., "PASSED").
primary_attachmentobjectPrimary supporting document for the certification. Links to directus_files.
accountobjectAccount associated with this certification. (Multi-tenant installations only)
covered_locationsarray of objectsLocations covered by this certification.
covered_organisationsarray of objectsOrganisations covered by this certification.
covered_productsarray of objectsProducts covered by this certification.

Sub-Objects​

User Object (user_created, user_updated)​

See Users for the full schema.

Account Object (account)​

See Account for the full schema.

File Object (primary_attachment)​

See Files for the full schema.


List Certifications​

List existing certifications.

GET /items/certification

Query Parameters​

Supports all global query parameters.

Returns​

An array of up to limit certification objects. If no items are available, data will be an empty array.


Retrieve a Certification​

Retrieve a specific certification by ID.

GET /items/certification/:id

Returns​

Returns a certification object if a valid primary key was provided.


Create a Certification​

Create a new certification.

POST /items/certification

{
"certification_agency": "USDA",
"certification_agency_url": "https://www.usda.gov/",
"certification_standard": "USDA Organic",
"certification_type": "Organic",
"certification_status": "ACTIVE",
"certification_identification": "2780003077",
"certification_start_date": "2024-05-02",
"certification_end_date": "2025-05-01"
}

Query Parameters​

Supports all global query parameters.

Request Body​

A partial certification object.

Returns​

Returns the certification object for the created certification.


Update a Certification​

Update an existing certification.

PATCH /items/certification/:id

{
"certification_status": "EXPIRED",
"certification_end_date": "2025-05-01"
}

Query Parameters​

Supports all global query parameters.

Request Body​

A partial certification object.

Returns​

Returns the certification object for the updated certification.


Delete a Certification​

Delete an existing certification.

DELETE /items/certification/:id

Returns​

Empty body.