Product certifications
GET
/product_certifications
List product certifications
Scopes
- certifications:read
Parameters
- cursor
- limit
- qFull-text search on names and titles.
- status
Responses
-
200OK
ProductCertificationPageFields (2)- dataRequired
- next_cursorRequiredPass as cursor for the next page; null on the last page.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
POST
/product_certifications
Create
Scopes
- certifications:write
Parameters
- Idempotency-KeyRequiredStored 24 h per company and key. Same key with a different body returns 422.
Request body
ProductCertificationInput
Fields (15)
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- external_idYour system's id, unique per company.
Responses
-
201Created
ProductCertificationFields (21)- id
- versionIncrements on every write. Send it back in If-Match.
- created_at
- updated_at
- deleted_at
- external_idYour system's id, unique per company.
- status
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- 400Validation failed.
- 409Version conflict, external_id taken, or a secret that cannot be replayed.
- 422Semantically invalid, or an Idempotency-Key reused with a different body.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
GET
/product_certifications/{id}
Get
Scopes
- certifications:read
Parameters
- idRequired
Responses
-
200OK
ProductCertificationFields (21)- id
- versionIncrements on every write. Send it back in If-Match.
- created_at
- updated_at
- deleted_at
- external_idYour system's id, unique per company.
- status
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- 404Not found. Records of other companies are also reported as not found.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
PATCH
/product_certifications/{id}
Update (partial)
Scopes
- certifications:write
Parameters
- idRequired
- Idempotency-Key
- If-MatchThe version you last read; 409 version_conflict when it changed.
Request body
ProductCertificationInput
Fields (15)
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- external_idYour system's id, unique per company.
Responses
-
200OK
ProductCertificationFields (21)- id
- versionIncrements on every write. Send it back in If-Match.
- created_at
- updated_at
- deleted_at
- external_idYour system's id, unique per company.
- status
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- 400Validation failed.
- 404Not found. Records of other companies are also reported as not found.
- 409Version conflict, external_id taken, or a secret that cannot be replayed.
- 422Semantically invalid, or an Idempotency-Key reused with a different body.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
DELETE
/product_certifications/{id}
Delete (soft; restorable for 30 days)
Scopes
- certifications:write
Parameters
- idRequired
- Idempotency-Key
Responses
- 204Deleted
- 404Not found. Records of other companies are also reported as not found.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
POST
/product_certifications/{id}/restore
Restore within 30 days of deletion
Scopes
- certifications:write
Parameters
- idRequired
- Idempotency-Key
Responses
-
200OK
ProductCertificationFields (21)- id
- versionIncrements on every write. Send it back in If-Match.
- created_at
- updated_at
- deleted_at
- external_idYour system's id, unique per company.
- status
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- 404Not found. Records of other companies are also reported as not found.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
PUT
/product_certifications/by_external_id/{external_id}
Create or replace by your external id
Scopes
- certifications:write
Parameters
- external_idRequired
- Idempotency-Key
- If-MatchThe version you last read; 409 version_conflict when it changed.
Request body
ProductCertificationInput
Fields (15)
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- external_idYour system's id, unique per company.
Responses
-
200Updated
ProductCertificationFields (21)- id
- versionIncrements on every write. Send it back in If-Match.
- created_at
- updated_at
- deleted_at
- external_idYour system's id, unique per company.
- status
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
-
201Created
ProductCertificationFields (21)- id
- versionIncrements on every write. Send it back in If-Match.
- created_at
- updated_at
- deleted_at
- external_idYour system's id, unique per company.
- status
- product_idRequired
- supplier_id
- scopeRequired
- certification_numberRequired
- halal_scheme_idRequired
- issuing_countryRequiredISO 3166-1 alpha-2.
- lifecycle
- start_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- end_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- renewal_of_id
- next_renewal_dateCalendar date in the organization's timezone (YYYY-MM-DD).
- cert_code_number
- halal_mark_used
- reminder_daysDays before end_date to remind; replaces the category rule and the default. Null follows them.
- 400Validation failed.
- 409Version conflict, external_id taken, or a secret that cannot be replayed.
- 422Semantically invalid, or an Idempotency-Key reused with a different body.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
GET
/halal_schemes
List the company's enabled halal schemes
Scopes
- certifications:read
Responses
-
200OK
HalalSchemePageFields (2)- dataRequired
- next_cursorRequiredPass as cursor for the next page; null on the last page.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
PUT
/product_certifications/{id}/documents/{document_id}
Link a document
Scopes
- certifications:write
- documents:read
Parameters
- idRequired
- document_idRequired
- Idempotency-Key
Responses
- 204Linked
- 404Not found. Records of other companies are also reported as not found.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.
DELETE
/product_certifications/{id}/documents/{document_id}
Unlink a document
Scopes
- certifications:write
- documents:read
Parameters
- idRequired
- document_idRequired
- Idempotency-Key
Responses
- 204Unlinked
- 404Not found. Records of other companies are also reported as not found.
- 401Missing, revoked, or expired API key.
- 403The key lacks the scope.
- 429Rate limited: 60 requests per minute per key.