curl --request PATCH \
--url https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"expiration_date": "2027-12-31",
"metadata": {
"order_id": "6735"
},
"source": "THIRD_PARTY_VERIFIED"
}
'import requests
url = "https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}"
payload = {
"expiration_date": "2027-12-31",
"metadata": { "order_id": "6735" },
"source": "THIRD_PARTY_VERIFIED"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expiration_date: '2027-12-31',
metadata: {order_id: '6735'},
source: 'THIRD_PARTY_VERIFIED'
})
};
fetch('https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}', 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/{claim_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'expiration_date' => '2027-12-31',
'metadata' => [
'order_id' => '6735'
],
'source' => 'THIRD_PARTY_VERIFIED'
]),
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/{claim_id}"
payload := strings.NewReader("{\n \"expiration_date\": \"2027-12-31\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"THIRD_PARTY_VERIFIED\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expiration_date\": \"2027-12-31\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"THIRD_PARTY_VERIFIED\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expiration_date\": \"2027-12-31\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"THIRD_PARTY_VERIFIED\"\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"
}Update claim assignment
Partially update a claim assignment on a product your organization owns. Only fields present in the request body are applied; omitted fields are left unchanged. metadata follows Stripe-style merge semantics. Returns 403 when the API key’s role may not contribute (a read-only key), and 404 when the GTIN does not match a product your organization owns or the claim is not assigned to it.
curl --request PATCH \
--url https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"expiration_date": "2027-12-31",
"metadata": {
"order_id": "6735"
},
"source": "THIRD_PARTY_VERIFIED"
}
'import requests
url = "https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}"
payload = {
"expiration_date": "2027-12-31",
"metadata": { "order_id": "6735" },
"source": "THIRD_PARTY_VERIFIED"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expiration_date: '2027-12-31',
metadata: {order_id: '6735'},
source: 'THIRD_PARTY_VERIFIED'
})
};
fetch('https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}', 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/{claim_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'expiration_date' => '2027-12-31',
'metadata' => [
'order_id' => '6735'
],
'source' => 'THIRD_PARTY_VERIFIED'
]),
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/{claim_id}"
payload := strings.NewReader("{\n \"expiration_date\": \"2027-12-31\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"THIRD_PARTY_VERIFIED\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expiration_date\": \"2027-12-31\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"THIRD_PARTY_VERIFIED\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/certifications/api/v1/products/{gtin}/claims/{claim_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expiration_date\": \"2027-12-31\",\n \"metadata\": {\n \"order_id\": \"6735\"\n },\n \"source\": \"THIRD_PARTY_VERIFIED\"\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"
}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 - 14Short ID of the claim to update on this product.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Body
Request body for PATCH /products/{gtin}/claims/{claim_id}.
All fields are optional; only fields present in the request body are
updated. metadata follows the Stripe-style merge convention: keys
with null values delete the key, keys with values upsert, omitted
keys are preserved. See :func:apps.core.api.metadata.apply_metadata_update.
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. Omit to leave unchanged; the default shown is not applied unless the field is sent. Not nullable.
BRAND_SELF_DECLARED, THIRD_PARTY_VERIFIED Start of validity (ISO 8601). Send null to clear; omit to leave unchanged.
End of validity (ISO 8601). Send null to clear; omit to leave unchanged.
Response
OK
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.