Create one or more entities. This playground calls the live API and will create real data.
Create one or more entities from product codes (or from raw content), then enrich them asynchronously.
Provide one or more codes (e.g. EAN/GTIN) together with the target countries; each entity is queued for creation and AI enrichment. You can also create a single entity from raw content by sending description and/or images instead of a code. When no code is supplied an internal unique code is generated.
When more than one code is sent, no other per-entity details (sku, title, brand, description, images, …) may be included — those apply to single-entity creation only.
POST https://api.commerceclarity.com/api/2026-05/entities/create| Parameter | Type | Required | Description |
|---|---|---|---|
codes | string | conditional | One or more product codes (EAN/GTIN). Separate multiple codes with commas. Required unless description or images is provided. |
countries | array | Required | Target countries — array of 2-letter ISO codes (e.g. ["it","fr"]). |
sku | string | Optional | Customer SKU (single-entity creation only). |
product_handle | string | Optional | URL handle/slug (single-entity creation only). |
title | string | Optional | Entity title (single-entity creation only). |
brand | string | Optional | Brand/vendor name (single-entity creation only). |
images | array | conditional | Array of image URLs. Required unless codes or description is provided. |
description | string | conditional | Source description. Required unless codes or images is provided. |
notes | string | Optional | Free-form notes passed to the enrichment workflow. |
brand_id | string | Optional | Target brand (admin only). Defaults to the active brand. |
curl -X POST "https://api.commerceclarity.com/api/2026-05/entities/create" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"codes": "8001841001234",
"countries": ["it"]
}'
$client = new \GuzzleHttp\Client();
$response = $client->post('https://api.commerceclarity.com/api/2026-05/entities/create', [
'headers' => [
'Authorization' => 'Bearer ' . $apiToken,
'Content-Type' => 'application/json',
],
'json' => [
'codes' => '8001841001234',
'countries' => ['it'],
],
]);
$data = json_decode($response->getBody(), true);
const response = await fetch('https://api.commerceclarity.com/api/2026-05/entities/create', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
codes: '8001841001234',
countries: ['it']
})
});
const data = await response.json();
{
"status": "success",
"message": "All 1 product(s) successfully queued for import",
"data": {
"total_requested": 1,
"successful": 1,
"failed": 0,
"imported_products": [
{ "code": "8001841001234", "status": "queued" }
],
"failures": []
}
}{
"status": "partial",
"message": "Imported 2 of 3 product(s), 1 failed",
"data": {
"total_requested": 3,
"successful": 2,
"failed": 1,
"imported_products": [
{ "code": "8001841001234", "status": "queued" },
{ "code": "8001841001235", "status": "queued" }
],
"failures": [
{ "code": "invalid_code", "reason": "product_code_invalid", "message": "The provided code is not valid" }
]
}
}{
"status": "error",
"code": "validation_failed",
"errors": {
"countries": ["The countries field is required."]
}
}