curl --request POST \
--url https://www.closient.com/certifications/api/v1/products/{gtin}/claims \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"claim_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"metadata": {
"order_id": "6735"
},
"source": "BRAND_SELF_DECLARED"
}
'import requests
url = "https://www.closient.com/certifications/api/v1/products/{gtin}/claims"
payload = {
"claim_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"metadata": { "order_id": "6735" },
"source": "BRAND_SELF_DECLARED"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
claim_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
metadata: {order_id: '6735'},
source: 'BRAND_SELF_DECLARED'
})
};
fetch('https://www.closient.com/certifications/api/v1/products/{gtin}/claims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/certifications/api/v1/products/{gtin}/claims",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'claim_id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'metadata' => [
'order_id' => '6735'
],
'source' => 'BRAND_SELF_DECLARED'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/certifications/api/v1/products/{gtin}/claims"
payload := strings.NewReader("{\n \"claim_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"BRAND_SELF_DECLARED\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/certifications/api/v1/products/{gtin}/claims")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"claim_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"BRAND_SELF_DECLARED\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/certifications/api/v1/products/{gtin}/claims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"claim_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"BRAND_SELF_DECLARED\"\n}"
response = http.request(request)
puts response.read_body{
"category": "INGREDIENT_ABSENCE",
"code": "NON_GMO",
"expiration_date": "2025-12-31",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"label": "Non-GMO",
"metadata": {
"order_id": "6735"
},
"source": "BRAND_SELF_DECLARED",
"valid_from": "2024-01-01"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Assign claim to product
Create a new claim assignment for a product your organization owns. Returns 201 with the created assignment on success; 403 when the API key’s role may not contribute (a read-only key); 404 if the GTIN does not match a product your organization owns or the claim_id does not exist; 409 if the claim is already assigned to this product (the (product, claim) pair is unique). This is a product content claim (Non-GMO, Vegan). Claiming ownership of a GTIN is a different endpoint — POST /products/{gtin}/claim — and is how an unowned product becomes writable here.
curl --request POST \
--url https://www.closient.com/certifications/api/v1/products/{gtin}/claims \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"claim_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"metadata": {
"order_id": "6735"
},
"source": "BRAND_SELF_DECLARED"
}
'import requests
url = "https://www.closient.com/certifications/api/v1/products/{gtin}/claims"
payload = {
"claim_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"metadata": { "order_id": "6735" },
"source": "BRAND_SELF_DECLARED"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
claim_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
metadata: {order_id: '6735'},
source: 'BRAND_SELF_DECLARED'
})
};
fetch('https://www.closient.com/certifications/api/v1/products/{gtin}/claims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/certifications/api/v1/products/{gtin}/claims",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'claim_id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'metadata' => [
'order_id' => '6735'
],
'source' => 'BRAND_SELF_DECLARED'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/certifications/api/v1/products/{gtin}/claims"
payload := strings.NewReader("{\n \"claim_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"BRAND_SELF_DECLARED\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/certifications/api/v1/products/{gtin}/claims")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"claim_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"BRAND_SELF_DECLARED\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/certifications/api/v1/products/{gtin}/claims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"claim_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"BRAND_SELF_DECLARED\"\n}"
response = http.request(request)
puts response.read_body{
"category": "INGREDIENT_ABSENCE",
"code": "NON_GMO",
"expiration_date": "2025-12-31",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"label": "Non-GMO",
"metadata": {
"order_id": "6735"
},
"source": "BRAND_SELF_DECLARED",
"valid_from": "2024-01-01"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Authorizations
Path Parameters
GTIN-8, GTIN-12, GTIN-13, or GTIN-14 barcode digits (no spaces, no hyphens). Shorter forms are zero-left-padded to GTIN-14 server-side. Returns 404 if no product matches the normalized GTIN.
8 - 14^\d{8,14}$Body
Request body for POST /products/{gtin}/claims.
Creates a new :class:ClaimAssignment linking the GTIN's product to
the claim identified by claim_id. Returns 409 Conflict if the
assignment already exists.
UUID of the :class:Claim to assign. Use the id field from GET /claims/{id}.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Developer-attached key/value data. Send {} or null to clear. Empty-string values delete that key. Omitted keys are preserved.
Show child attributes
Show child attributes
How the claim is asserted. Defaults to BRAND_SELF_DECLARED for brand-supplied data; set to THIRD_PARTY_VERIFIED when an audit trail backs the claim.
BRAND_SELF_DECLARED, THIRD_PARTY_VERIFIED Start of validity for this claim (ISO 8601). Optional.
End of validity for this claim (ISO 8601). Optional; null = open-ended.
URL to supporting evidence (third-party certificate scan, lab report, supplier letter). Empty when the source is BRAND_SELF_DECLARED and no evidence exists.
Free-text notes about the evidence. Empty when not provided.
Response
Created
A claim assigned to a specific product.
Mirrors :class:apps.certifications.models.ClaimAssignment. Most
fields proxy through to the linked :class:Claim record; source,
valid_from, expiration_date, and metadata carry the
per-instance state.
Like :class:CertificationAssignmentOut, id and id are
the claim's identifiers (not the assignment's), so callers can
deep-link to the claim record.
URL-safe 22-character shortuuid encoding of the row's UUID primary key. Stable across the row's lifetime; suitable for sharing in URLs, log lines, and external SDK clients. Accepted on input as either the shortuuid form or the canonical UUID form (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Display name of the underlying claim (e.g. Non-GMO).
100Stable code of the underlying claim (e.g. NON_GMO).
50Category of the underlying claim. See :class:ClaimCategoryEnum for the full set of values.
DIETARY, INGREDIENT_ABSENCE, ALLERGEN_FREE, PROCESS, SUSTAINABILITY, OTHER How the claim is asserted. BRAND_SELF_DECLARED means the brand states the claim without third-party verification; THIRD_PARTY_VERIFIED means an independent body has verified it.
BRAND_SELF_DECLARED, THIRD_PARTY_VERIFIED Developer-attached key/value data attached to this object. Up to 50 keys; key max 40 chars, value max 500 chars.
Show child attributes
Show child attributes
Start of validity for this claim (ISO 8601). null when no start date was recorded — treat as 'valid since unknown date'.
End of validity for this claim (ISO 8601). null for claims with no scheduled expiry.