# Variants
Variants are sub elements of products that define different variations a product exist in, ex. different colors, sizes etc. Variants cannot exist on its own as they need to be attached to a product. Variants have defining attributes which defines the attributes variants of a product vary on, ex. color and size, with and length etc.
GET /variants Get basic models for variants
No more than 5000 variants can be requested at a time. If no limit is provided, the default limit of 1000 will be used. By default, archived variants are not returned
{
"Variants": [
{
"Id": 2011,
"Name": {
"en-GB": "Apple Iphone - Red/256GB",
"da-DK": "Apple Iphone - Rød/256GB"
},
"ProductId": 3922,
"SortOrder": 3,
"Created": "2025-05-19T15:17:55.2082301+02:00",
"CreatedBy": "Struct",
"LastModified": "2025-05-19T15:17:55.2082301+02:00",
"LastModifiedBy": "Struct",
"IsArchived": false,
"ProductStructureUid": "c456af52-6486-4fcc-b4a9-5e92dbe0a49c",
"DefiningAttributes": [
"49fa7fde-c75b-478f-95d7-b23b43b28511",
"258e5597-de05-4cf7-b53d-6848669f8a57"
]
},
{
"Id": 2012,
"Name": {
"en-GB": "Apple Iphone - Red/512GB",
"da-DK": "Apple Iphone - Rød/512GB"
},
"ProductId": 3922,
"SortOrder": 2,
"Created": "2025-02-08T14:17:55.2082301+01:00",
"CreatedBy": "Struct",
"LastModified": "2024-12-20T14:17:55.2082301+01:00",
"LastModifiedBy": "Struct",
"IsArchived": false,
"ProductStructureUid": "c456af52-6486-4fcc-b4a9-5e92dbe0a49c",
"DefiningAttributes": [
"49fa7fde-c75b-478f-95d7-b23b43b28511",
"258e5597-de05-4cf7-b53d-6848669f8a57"
]
},
{
"Id": 2013,
"Name": {
"en-GB": "Samsung TV - 55 inch",
"da-DK": "Samsung TV - 55 tommer"
},
"ProductId": 4443,
"SortOrder": 1,
"Created": "2024-11-25T14:17:55.2082301+01:00",
"CreatedBy": "Struct",
"LastModified": "2024-11-25T14:17:55.2082301+01:00",
"LastModifiedBy": "Struct",
"IsArchived": false,
"ProductStructureUid": "c456af52-6486-4fcc-b4a9-5e92dbe0a49c",
"DefiningAttributes": [
"242a9256-c5c4-44d6-8f68-f6348b1b972c"
]
}
],
"Total": 20102,
"Remaining": 20100,
"LastId": 20
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
includeArchived | query | boolean | |
limit | query | integer | |
afterId | query | integer |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Variants | array : VariantModel |
Variants in result set |
Total | integer |
The total number of items |
Remaining | integer |
The remaining items that lie after the last id of the item in this result set |
LastId | integer |
The id of the last item in this result set |
Property name | Data type | Description |
---|---|---|
Id | integer |
Id of variant |
Name | object |
Display name of variant (Dictionary of ISO culture code and name) Note: Available from 3.7.0 |
ProductId | integer |
Id of product to which variant is attached |
SortOrder | integer |
#Available from v.3.2.0 The sort order of the variant compared to other variants of this product |
VariantGroupId | integer |
#Available from v.3.11.0 The variant group this variant is connected to, if any |
VariantGroupSortOrder | integer |
#Available from v.3.11.0 The sortorder relative to other variants connected to the same variant group |
Created | string |
Timestamp of variant creation |
CreatedBy | string |
Username of the user who created the variant |
LastModified | string |
Timestamp of the last variant update |
LastModifiedBy | string |
Username of the user who made the last change to the variant |
IsArchived | boolean |
Indicates whether the variant is archived |
ArchiveReason | string |
The uid of the archive reason selected when the variant was archived |
ProductStructureUid | string |
The product structure used by this variant |
DefiningAttributes | array |
The unique ids of the attributes acting as defining attributes for this variant |
WorkflowStateUid | string |
The uid of the workflow state of the variant |
POST /variants Create new variants
A maximum of 5000 variants can be created in one request
[
{
"ProductId": 3699,
"Values": {
"EAN": "5796359512359",
"Size": "L",
"Color": [
{
"CultureCode": "en-GB",
"Data": "Red"
},
{
"CultureCode": "da-DK",
"Data": "Rød"
}
]
}
},
{
"ProductId": 3699,
"Values": {
"EAN": "5756962549623",
"Size": "M",
"Color": [
{
"CultureCode": "en-GB",
"Data": "Red"
},
{
"CultureCode": "da-DK",
"Data": "Rød"
}
]
}
}
]
[
10024,
10025,
10026
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
variants | body | array : CreateVariantModel |
Variants |
Property name | Data type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ProductId | integer |
Id of product to attach variant to |
||||||||||||||||||||||||||||
SortOrder | integer |
Sort order of variant compared to other variants of the product (when null, variant is placed after existing variants) |
||||||||||||||||||||||||||||
VariantGroupSortOrder | integer |
Sort order of variant compared to other variants in same variant group |
||||||||||||||||||||||||||||
WorkflowStateUid | string |
Workflow state to set on the variant |
||||||||||||||||||||||||||||
Values | object |
Dictionary of attribute alias and the corresponding attribute value as an object representation The table below shows how different attributes translates to this value model.
|
Response status OK (200)
DELETE /variants Delete multiple variants
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
variantIds | body | array : integer |
Ids of variants to delete |
Response status OK (200)
PATCH /variants Update multiple variants
[
{
"VariantId": 23556,
"UpdateModel": {
"Values": {
"Size": "L"
}
}
},
{
"VariantId": 20111,
"UpdateModel": {
"IsArchived": true,
"ArchiveReason": "25cb42f9-4632-4791-a0a9-cbb55c557d69"
}
},
{
"VariantId": 56843,
"UpdateModel": {
"ProductId": 30211,
"SortOrder": 32,
"Values": {
"EAN": "5796359512359",
"Size": "M"
}
}
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
variants | body | array : BatchUpdateVariantModel |
Update model |
Property name | Data type | Description |
---|---|---|
VariantId | integer |
Id of variant to update |
UpdateModel | object : UpdateVariantModel |
Model containing updates to make on variant (properties with null values are ignored and does not cause an update) |
Property name | Data type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ProductId | integer |
Id of product to move variant to #Available from 3.2.0 |
||||||||||||||||||||||||||||
IsArchived | boolean |
Indicate whether the product shall be archived or un-archived |
||||||||||||||||||||||||||||
ArchiveReason | string |
Reference to the archive reason when archiving variant (if IsArchived is true) |
||||||||||||||||||||||||||||
SortOrder | integer |
Sort order of variant compared to other variants of the product |
||||||||||||||||||||||||||||
VariantGroupSortOrder | integer |
Sort order of variant compared to other variants in same variant group |
||||||||||||||||||||||||||||
WorkflowStateUid | string |
Workflow state to set on the variant |
||||||||||||||||||||||||||||
Values | object |
Dictionary of attribute alias and the corresponding attribute value as an object representation The table below shows how different attributes translates to this value model.
|
Response status OK (200)
GET /variants/{id} Get basic model for a variant
{
"Id": 2011,
"Name": {
"en-GB": "Apple Iphone - Red/256GB",
"da-DK": "Apple Iphone - Rød/256GB"
},
"ProductId": 3922,
"SortOrder": 3,
"Created": "2025-05-19T15:17:55.1866748+02:00",
"CreatedBy": "Struct",
"LastModified": "2025-05-19T15:17:55.1866748+02:00",
"LastModifiedBy": "Struct",
"IsArchived": false,
"ProductStructureUid": "f0d13769-00ab-4340-a95b-b90e3c9bcf6d",
"DefiningAttributes": [
"813e3f33-6aba-463b-a2f2-5e3ff59f02ac",
"3c2f692c-77b8-467e-82ce-533a5d22e8e7"
]
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of variant |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Id | integer |
Id of variant |
Name | object |
Display name of variant (Dictionary of ISO culture code and name) Note: Available from 3.7.0 |
ProductId | integer |
Id of product to which variant is attached |
SortOrder | integer |
#Available from v.3.2.0 The sort order of the variant compared to other variants of this product |
VariantGroupId | integer |
#Available from v.3.11.0 The variant group this variant is connected to, if any |
VariantGroupSortOrder | integer |
#Available from v.3.11.0 The sortorder relative to other variants connected to the same variant group |
Created | string |
Timestamp of variant creation |
CreatedBy | string |
Username of the user who created the variant |
LastModified | string |
Timestamp of the last variant update |
LastModifiedBy | string |
Username of the user who made the last change to the variant |
IsArchived | boolean |
Indicates whether the variant is archived |
ArchiveReason | string |
The uid of the archive reason selected when the variant was archived |
ProductStructureUid | string |
The product structure used by this variant |
DefiningAttributes | array |
The unique ids of the attributes acting as defining attributes for this variant |
WorkflowStateUid | string |
The uid of the workflow state of the variant |
DELETE /variants/{id} Delete a variant
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of variant to delete |
Response status OK (200)
PATCH /variants/{id} Update a variant
{
"Values": {
"EAN": "5796359512359",
"Size": "L",
"Color": [
{
"CultureCode": "en-GB",
"Data": "Red"
},
{
"CultureCode": "da-DK",
"Data": "Rød"
}
]
}
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of variant |
model | body | object : UpdateVariantModel |
Update model |
Property name | Data type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ProductId | integer |
Id of product to move variant to #Available from 3.2.0 |
||||||||||||||||||||||||||||
IsArchived | boolean |
Indicate whether the product shall be archived or un-archived |
||||||||||||||||||||||||||||
ArchiveReason | string |
Reference to the archive reason when archiving variant (if IsArchived is true) |
||||||||||||||||||||||||||||
SortOrder | integer |
Sort order of variant compared to other variants of the product |
||||||||||||||||||||||||||||
VariantGroupSortOrder | integer |
Sort order of variant compared to other variants in same variant group |
||||||||||||||||||||||||||||
WorkflowStateUid | string |
Workflow state to set on the variant |
||||||||||||||||||||||||||||
Values | object |
Dictionary of attribute alias and the corresponding attribute value as an object representation The table below shows how different attributes translates to this value model.
|
Response status OK (200)
GET /variants/{id}/attributevalues Get attribute values for a variant
{
"VariantId": 56687,
"Values": {
"EAN": "5796359512359",
"Size": "L",
"Color": [
{
"CultureCode": "en-GB",
"Data": "Red"
},
{
"CultureCode": "da-DK",
"Data": "Rød"
}
]
}
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of variant |
globalListValueReferencesOnly | query | boolean |
Indicate if only uids of referenced to global list values shall be returned instead of the materialized values |
Response status OK (200)
Property name | Data type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
VariantId | integer |
Id of variant |
||||||||||||||||||||||||||||
Values | object |
Dictionary of attribute alias and the corresponding attribute value as an object representation The table below shows how different attributes translates to this value model.
|
GET /variants/{id}/enrichmentinsights Get Enrichment Insights for a variant
#Available from v.3.5.0
[
{
"EnrichmentInsightSetupUid": "b9ab083f-d622-4eba-b273-4a9bf26a3a03",
"EntityId": 1974035,
"Completeness": 50,
"MissingData": [
{
"Type": "AttributeInsightsDataReference",
"DataReference": "f9a52541-5712-406b-b4b6-04a94399e00f_9_NA"
}
],
"Ignored": false
},
{
"EnrichmentInsightSetupUid": "731a399b-f61c-48d4-b1c0-251a20d7125a",
"EntityId": 1974035,
"Completeness": 100,
"MissingData": [],
"Ignored": false
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of variant to get insights for |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
EnrichmentInsightSetupUid | string |
Uid of enrichment insight |
EntityId | integer |
Id of entity |
Completeness | integer |
Completeness in percentage (0 - 100). Is null, if ignored is true |
MissingData | array : InsightDataReference |
List of missing data for this entity to reach 100% completeness for this enrichment insight |
Ignored | boolean |
Indicates whether the completeness is ignored for this entity and this enrichment insight |
Property name | Data type | Description |
---|---|---|
Type | string |
Type of data reference |
DataReference | string |
The data reference itself |
PATCH /variants/{id}/enrichmentinsights/{enrichmentInsightSetupUid}/{ignore} Enable or disable an enrichment insight for a variant
#Available from v.3.5.0
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of variant |
enrichmentInsightSetupUid | path | string |
Uid of enrichment insight to toggle ignore for |
ignore | path | boolean |
Indicate whether to ignore the insight for the given enrichment insight and variant |
Response status OK (200)
GET /variants/{id}/references Get references to a variant
#Available from v.3.5.0
[
{
"VariantId": 12,
"ReferencingCategories": [
{
"EntityId": 100,
"AttributeUid": "fc157368-d373-4c1d-8895-2badcf803448"
},
{
"EntityId": 101,
"AttributeUid": "fc157368-d373-4c1d-8895-2badcf803448"
}
],
"ReferencingProducts": [
{
"EntityId": 100010,
"AttributeUid": "a6552096-2083-482d-8b57-490c03efb2aa"
},
{
"EntityId": 100011,
"AttributeUid": "a6552096-2083-482d-8b57-490c03efb2aa"
},
{
"EntityId": 102354,
"AttributeUid": "00d0c76f-190f-42d6-ba1e-e963852398a2"
}
],
"ReferencingVariantGroups": [],
"ReferencingVariants": [
{
"EntityId": 100,
"AttributeUid": "a6552096-2083-482d-8b57-490c03efb2aa"
}
],
"ReferencingGlobalListValues": [
"132b9a93-abb8-4a44-b7ff-85489b84d4eb",
"db8e24f8-b27d-450a-9f47-88b2ca66caa9"
]
},
{
"VariantId": 20,
"ReferencingCategories": [
{
"EntityId": 100,
"AttributeUid": "fc157368-d373-4c1d-8895-2badcf803448"
}
],
"ReferencingProducts": [
{
"EntityId": 23553,
"AttributeUid": "a6552096-2083-482d-8b57-490c03efb2aa"
},
{
"EntityId": 5656,
"AttributeUid": "a6552096-2083-482d-8b57-490c03efb2aa"
}
],
"ReferencingVariantGroups": [],
"ReferencingVariants": [
{
"EntityId": 568323,
"AttributeUid": "00d0c76f-190f-42d6-ba1e-e963852398a2"
}
],
"ReferencingGlobalListValues": [
"c9943d76-a67f-438a-826e-54885ab97dd4",
"6041269d-7c34-4e54-94f8-cecf21eab172"
]
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of variant |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
VariantId | integer |
Id of the referenced variant |
ReferencingCategories | array : EntityReferenceDetail |
List of categories referencing this variant |
ReferencingProducts | array : EntityReferenceDetail |
List of products referencing this variant |
ReferencingVariantGroups | array : EntityReferenceDetail |
List of variant groups referencing this variant |
ReferencingVariants | array : EntityReferenceDetail |
List of variants referencing this variant |
ReferencingGlobalListValues | array |
List of global list values referencing this variant |
Property name | Data type | Description |
---|---|---|
EntityId | integer |
The id of the referencing entity |
AttributeUid | string |
The attribute on the referencing entity that holds the reference |
POST /variants/batch Get basic model for a range of variants
[
{
"Id": 2011,
"Name": {
"en-GB": "Apple Iphone - Red/256GB",
"da-DK": "Apple Iphone - Rød/256GB"
},
"ProductId": 3922,
"SortOrder": 3,
"Created": "2025-05-19T15:17:55.2008329+02:00",
"CreatedBy": "Struct",
"LastModified": "2025-05-19T15:17:55.2008329+02:00",
"LastModifiedBy": "Struct",
"IsArchived": false,
"ProductStructureUid": "2064ceab-67d2-48cd-ab3d-f50256eb0383",
"DefiningAttributes": [
"3aa1aca0-b76e-426f-af74-ac00a58cc18d",
"ef5a5a5f-13de-4348-b24f-b85389c6619a"
]
},
{
"Id": 2012,
"Name": {
"en-GB": "Apple Iphone - Red/512GB",
"da-DK": "Apple Iphone - Rød/512GB"
},
"ProductId": 3922,
"SortOrder": 2,
"Created": "2025-02-08T14:17:55.2008329+01:00",
"CreatedBy": "Struct",
"LastModified": "2024-12-20T14:17:55.2008329+01:00",
"LastModifiedBy": "Struct",
"IsArchived": false,
"ProductStructureUid": "2064ceab-67d2-48cd-ab3d-f50256eb0383",
"DefiningAttributes": [
"3aa1aca0-b76e-426f-af74-ac00a58cc18d",
"ef5a5a5f-13de-4348-b24f-b85389c6619a"
]
},
{
"Id": 2013,
"Name": {
"en-GB": "Samsung TV - 55 inch",
"da-DK": "Samsung TV - 55 tommer"
},
"ProductId": 4443,
"SortOrder": 1,
"Created": "2024-11-25T14:17:55.2008329+01:00",
"CreatedBy": "Struct",
"LastModified": "2024-11-25T14:17:55.2008329+01:00",
"LastModifiedBy": "Struct",
"IsArchived": false,
"ProductStructureUid": "2064ceab-67d2-48cd-ab3d-f50256eb0383",
"DefiningAttributes": [
"4d492a8e-b184-4bde-813d-75f02e107d55"
]
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
ids | body | array : integer |
Ids of variants to get models for |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Id | integer |
Id of variant |
Name | object |
Display name of variant (Dictionary of ISO culture code and name) Note: Available from 3.7.0 |
ProductId | integer |
Id of product to which variant is attached |
SortOrder | integer |
#Available from v.3.2.0 The sort order of the variant compared to other variants of this product |
VariantGroupId | integer |
#Available from v.3.11.0 The variant group this variant is connected to, if any |
VariantGroupSortOrder | integer |
#Available from v.3.11.0 The sortorder relative to other variants connected to the same variant group |
Created | string |
Timestamp of variant creation |
CreatedBy | string |
Username of the user who created the variant |
LastModified | string |
Timestamp of the last variant update |
LastModifiedBy | string |
Username of the user who made the last change to the variant |
IsArchived | boolean |
Indicates whether the variant is archived |
ArchiveReason | string |
The uid of the archive reason selected when the variant was archived |
ProductStructureUid | string |
The product structure used by this variant |
DefiningAttributes | array |
The unique ids of the attributes acting as defining attributes for this variant |
WorkflowStateUid | string |
The uid of the workflow state of the variant |
POST /variants/batch/attributevalues Get attribute values for multiple variants
No more than 5000 variants can be requested at a time.
[
{
"VariantId": 56687,
"Values": {
"EAN": "5796359512359",
"Size": "L",
"Color": [
{
"CultureCode": "en-GB",
"Data": "Red"
},
{
"CultureCode": "da-DK",
"Data": "Rød"
}
]
}
},
{
"VariantId": 56297,
"Values": {
"EAN": "5756962549623",
"Size": "M",
"Color": [
{
"CultureCode": "en-GB",
"Data": "Red"
},
{
"CultureCode": "da-DK",
"Data": "Rød"
}
]
}
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : VariantValuesRequestModel |
Request model |
Property name | Data type | Description |
---|---|---|
VariantIds | array |
Ids of products to return |
IncludeValues | string |
Select if any source of values shall be returned |
Scopes | array |
If IncludeValues is Scopes, define which scopes to return values for here |
Aliases | array |
If IncludeValues is Aliases, define aliases of the attributes to include values for |
Uids | array |
If IncludeValues is Uids, define uids of the attributes to include values for |
LimitToCultureCodes | array |
Only return values for specific languages |
LimitToSegments | array |
Only return values for specific dimension segments |
GlobalListValueReferencesOnly | boolean |
Indicate if only uids of referenced to global list values shall be returned instead of the materialized values |
FromTimestamp | string |
Get attribute values back in time |
Response status OK (200)
Property name | Data type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
VariantId | integer |
Id of variant |
||||||||||||||||||||||||||||
Values | object |
Dictionary of attribute alias and the corresponding attribute value as an object representation The table below shows how different attributes translates to this value model.
|
POST /variants/batch/enrichmentinsights Get Enrichment Insights for a batch of variants
#Available from v.3.5.0
[
{
"EnrichmentInsightSetupUid": "293f5208-4331-4e6c-9a54-ccf6d71842da",
"EntityId": 1974035,
"Completeness": 50,
"MissingData": [
{
"Type": "AttributeInsightsDataReference",
"DataReference": "f9a52541-5712-406b-b4b6-04a94399e00f_9_NA"
}
],
"Ignored": false
},
{
"EnrichmentInsightSetupUid": "293f5208-4331-4e6c-9a54-ccf6d71842da",
"EntityId": 1974043,
"Completeness": 100,
"MissingData": [],
"Ignored": false
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
variantIds | body | array : integer |
Ids of variants to get insights for |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
EnrichmentInsightSetupUid | string |
Uid of enrichment insight |
EntityId | integer |
Id of entity |
Completeness | integer |
Completeness in percentage (0 - 100). Is null, if ignored is true |
MissingData | array : InsightDataReference |
List of missing data for this entity to reach 100% completeness for this enrichment insight |
Ignored | boolean |
Indicates whether the completeness is ignored for this entity and this enrichment insight |
Property name | Data type | Description |
---|---|---|
Type | string |
Type of data reference |
DataReference | string |
The data reference itself |
PATCH /variants/batch/enrichmentinsights/{enrichmentInsightSetupUid}/{ignore} Enable or disable an enrichment insight for a batch of variants
#Available from v.3.5.0
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
variantIds | body | array : integer |
Ids of variants to toggle ignore for |
enrichmentInsightSetupUid | path | string |
Uid of enrichment insight to toggle ignore for |
ignore | path | boolean |
Indicate whether to ignore the insight for the given enrichment insight and variants |
Response status OK (200)
POST /variants/batch/enrichmentinsights/{enrichmentInsightUid} Get insights for a batch of variants and a specific Enrichment Insight
#Available from v.3.5.0
[
{
"EnrichmentInsightSetupUid": "c6928e13-c0d8-4be7-b452-32bfe9a56d8b",
"EntityId": 1974035,
"Completeness": 50,
"MissingData": [
{
"Type": "AttributeInsightsDataReference",
"DataReference": "f9a52541-5712-406b-b4b6-04a94399e00f_9_NA"
}
],
"Ignored": false
},
{
"EnrichmentInsightSetupUid": "c6928e13-c0d8-4be7-b452-32bfe9a56d8b",
"EntityId": 1974043,
"Completeness": 100,
"MissingData": [],
"Ignored": false
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
variantIds | body | array : integer |
Ids of variants to get insights for |
enrichmentInsightUid | path | string |
Uid of enrichment insight to get for batch of variants |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
EnrichmentInsightSetupUid | string |
Uid of enrichment insight |
EntityId | integer |
Id of entity |
Completeness | integer |
Completeness in percentage (0 - 100). Is null, if ignored is true |
MissingData | array : InsightDataReference |
List of missing data for this entity to reach 100% completeness for this enrichment insight |
Ignored | boolean |
Indicates whether the completeness is ignored for this entity and this enrichment insight |
Property name | Data type | Description |
---|---|---|
Type | string |
Type of data reference |
DataReference | string |
The data reference itself |
POST /variants/batch/identifiers Get internal ids of multiple variants from their identifier
{
"5796359512359": 10000,
"5756525697563": 11012,
"5756326985442": 15133,
"5799645384354": null
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : IdentifierBatchModel |
Specify alias of identifier type and the identifiers to return internal ids for |
Property name | Data type | Description |
---|---|---|
IdentifierAlias | string |
The alias of the identifier |
Identifiers | array |
Array of identifiers to return internal ids for |
Response status OK (200)
POST /variants/batch/references Get references to a batch of variants
#Available from v.3.5.0 No more than 5000 values can be requested at a time.
[
{
"VariantId": 12,
"ReferencingCategories": [
{
"EntityId": 100,
"AttributeUid": "f7fe014f-b09e-4468-998d-d6812569dd2d"
},
{
"EntityId": 101,
"AttributeUid": "f7fe014f-b09e-4468-998d-d6812569dd2d"
}
],
"ReferencingProducts": [
{
"EntityId": 100010,
"AttributeUid": "00207c38-82ab-4875-a0ce-c57e743949e5"
},
{
"EntityId": 100011,
"AttributeUid": "00207c38-82ab-4875-a0ce-c57e743949e5"
},
{
"EntityId": 102354,
"AttributeUid": "692c705b-25a6-4ef7-afd2-ed53727c1757"
}
],
"ReferencingVariantGroups": [],
"ReferencingVariants": [
{
"EntityId": 100,
"AttributeUid": "00207c38-82ab-4875-a0ce-c57e743949e5"
}
],
"ReferencingGlobalListValues": [
"9ada205b-4587-47e5-9fe8-81cf7472daff",
"23943c7d-0b4c-49aa-b223-f0d6bea79a4c"
]
},
{
"VariantId": 20,
"ReferencingCategories": [
{
"EntityId": 100,
"AttributeUid": "f7fe014f-b09e-4468-998d-d6812569dd2d"
}
],
"ReferencingProducts": [
{
"EntityId": 23553,
"AttributeUid": "00207c38-82ab-4875-a0ce-c57e743949e5"
},
{
"EntityId": 5656,
"AttributeUid": "00207c38-82ab-4875-a0ce-c57e743949e5"
}
],
"ReferencingVariantGroups": [],
"ReferencingVariants": [
{
"EntityId": 568323,
"AttributeUid": "692c705b-25a6-4ef7-afd2-ed53727c1757"
}
],
"ReferencingGlobalListValues": [
"39d63cec-fee7-4bed-9cf5-18a007e19e88",
"f2614a35-b4ae-4469-bc9f-2525704b56dc"
]
}
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
ids | body | array : integer |
Ids of variants |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
VariantId | integer |
Id of the referenced variant |
ReferencingCategories | array : EntityReferenceDetail |
List of categories referencing this variant |
ReferencingProducts | array : EntityReferenceDetail |
List of products referencing this variant |
ReferencingVariantGroups | array : EntityReferenceDetail |
List of variant groups referencing this variant |
ReferencingVariants | array : EntityReferenceDetail |
List of variants referencing this variant |
ReferencingGlobalListValues | array |
List of global list values referencing this variant |
Property name | Data type | Description |
---|---|---|
EntityId | integer |
The id of the referencing entity |
AttributeUid | string |
The attribute on the referencing entity that holds the reference |
GET /variants/identifiers/{identifierAlias} Get all identifiers and their internal ids for a specific identifier type
{
"5796359512359": 10000,
"5756525697563": 11012,
"5756326985442": 15133
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
identifierAlias | path | string |
Alias of identifier type |
Response status OK (200)
GET /variants/identifiers/{identifierAlias}/{identifier} Get the internal id of a variant based on its identifier
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
identifierAlias | path | string |
Alias of identifier type |
identifier | path | string |
Identifier value |
Response status OK (200)
GET /variants/ids Get ids of all variants in the system
By default, ids for archived variants are not returned
[
56165,
65332,
1565313,
41633,
5613,
23536,
56332
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
includeArchived | query | boolean |
Include archived variants |
Response status OK (200)
POST /variants/inheritedAttributeValues Get attributes which values are inherited from the product
A maximum of 1000 products can be requested in one request
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : InheritedAttributesRequestModel |
model |
Property name | Data type | Description |
---|---|---|
ProductIds | array |
The product ids to get inherited attributes for |
InheritedAttributes | array |
The attribute uids to get inherited attributes for |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
ProductId | integer |
The product id of the products that owns the attributeValues |
VariantId | integer |
The variant id that inherits the attributeValues |
InheritedAttributes | array |
The attribute uids thats are inherited |
GET /variants/queryfields Get all available query fields in the PIM installation
[
{
"Uid": "PIM_CategoryIds",
"Name": "CategoryIds",
"SupportsSorting": false
},
{
"Uid": "Name_en-GB",
"Name": "Name (en-GB)",
"SupportsSorting": false
},
{
"Uid": "Name_da-DK",
"Name": "Name (da-DK)",
"SupportsSorting": false
},
{
"Uid": "Description_en-GB",
"Name": "Description (en-GB)",
"SupportsSorting": false
},
{
"Uid": "Description_da-DK",
"Name": "Description (da-DK)",
"SupportsSorting": false
}
]
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Uid | string |
Unique id of field in PIM |
Name | string |
The display name of the field |
SupportsSorting | boolean |
If true field can be used for sorting |
POST /variants/search Get ids of variants matching certain criteria
{
"IncludeArchived": false,
"QueryModel": {
"SubQueries": [
{
"Filters": [
{
"FieldUid": "ReleasedInCountries_NA_NA",
"QueryOperator": 0,
"FilterValue": "DK"
}
],
"BooleanOperator": 0,
"QueryModelType": "SimpleQueryModel"
},
{
"Filters": [
{
"FieldUid": "Color.BaseColor.Name_en-GB_NA",
"QueryOperator": 0,
"FilterValue": "red"
},
{
"FieldUid": "Color.BaseColor.Name_en-GB_NA",
"QueryOperator": 0,
"FilterValue": "blue"
}
],
"BooleanOperator": 1,
"QueryModelType": "SimpleQueryModel"
}
],
"BooleanOperator": 0,
"QueryModelType": "BooleanQueryModel"
}
}
[
10021,
20311,
234032,
23134,
53451,
32433,
23481
]
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : SearchModel |
Query model |
Property name | Data type | Description |
---|---|---|
IncludeArchived | boolean |
Include archived items in result |
QueryModel | object : QueryModel |
The actual query to get result for |
Property name | Data type | Description |
---|---|---|
Filters | array : FieldFilterModel |
List of filter conditions |
BooleanOperator | string |
The operator of the query. Can be any of:
|
QueryModelType | string |
The type of query model. Name matches exact name of concrete model implementation |
Property name | Data type | Description |
---|---|---|
SubQueries | array : QueryModel |
Sub queries to execute |
BooleanOperator | string |
The operator of the query. Can be any of:
|
QueryModelType | string |
The type of query model. Name matches exact name of concrete model implementation |
Property name | Data type | Description |
---|---|---|
FieldUid | string |
Uid of field to query |
QueryOperator | string |
Operator to use for query. Can be any of:
|
FilterValue | object |
Value to filter for using the QueryOperator. When QueryOperator is "InList", FilterValue must be an array of values to query for |
Response status OK (200)
POST /variants/search/paged Get paged result of variants matching certain criteria. Result mapped with headers and item results
{
"Page": 1,
"PageSize": 10,
"FieldUids": [
"Id",
"Color.BaseColor.Name_en-GB_NA"
],
"SortByFieldUid": "Color.BaseColor.Name_en-GB_NA",
"SortDescending": true,
"IncludeArchived": false,
"QueryModel": {
"SubQueries": [
{
"Filters": [
{
"FieldUid": "ReleasedInCountries_NA_NA",
"QueryOperator": 0,
"FilterValue": "DK"
}
],
"BooleanOperator": 0,
"QueryModelType": "SimpleQueryModel"
},
{
"Filters": [
{
"FieldUid": "Color.BaseColor.Name_en-GB_NA",
"QueryOperator": 0,
"FilterValue": "red"
},
{
"FieldUid": "Color.BaseColor.Name_en-GB_NA",
"QueryOperator": 0,
"FilterValue": "blue"
}
],
"BooleanOperator": 1,
"QueryModelType": "SimpleQueryModel"
}
],
"BooleanOperator": 0,
"QueryModelType": "BooleanQueryModel"
}
}
{
"TotalHits": 33,
"Page": 1,
"PageSize": 3,
"TotalPages": 11,
"ItemListHeaders": [
{
"FieldUid": "Id",
"FieldName": "Internal Id",
"FieldType": "tableStringRenderer",
"SupportsSearching": true,
"SupportsSorting": true
},
{
"FieldUid": "Color.BaseColor.Name_en-GB_NA",
"FieldName": "Color.Base Color.Name",
"FieldType": "tableStringRenderer",
"SupportsSearching": true,
"SupportsSorting": true
}
],
"ListItems": [
{
"Id": 10021
},
{
"Id": 20311
},
{
"Id": 234032
}
]
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : SearchPagedModel |
Query model |
Property name | Data type | Description |
---|---|---|
Page | integer | |
PageSize | integer | |
FieldUids | array | |
SortByFieldUid | string | |
SortDescending | boolean | |
IncludeArchived | boolean |
Include archived items in result |
QueryModel | object : QueryModel |
The actual query to get result for |
Property name | Data type | Description |
---|---|---|
Filters | array : FieldFilterModel |
List of filter conditions |
BooleanOperator | string |
The operator of the query. Can be any of:
|
QueryModelType | string |
The type of query model. Name matches exact name of concrete model implementation |
Property name | Data type | Description |
---|---|---|
SubQueries | array : QueryModel |
Sub queries to execute |
BooleanOperator | string |
The operator of the query. Can be any of:
|
QueryModelType | string |
The type of query model. Name matches exact name of concrete model implementation |
Property name | Data type | Description |
---|---|---|
FieldUid | string |
Uid of field to query |
QueryOperator | string |
Operator to use for query. Can be any of:
|
FilterValue | object |
Value to filter for using the QueryOperator. When QueryOperator is "InList", FilterValue must be an array of values to query for |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
TotalHits | integer | |
Page | integer | |
PageSize | integer | |
TotalPages | integer | |
ItemListHeaders | array : ItemListHeader | |
ListItems | array : ListItem |
Property name | Data type | Description |
---|---|---|
FieldUid | string | |
FieldName | string | |
FieldType | string | |
SupportsSearching | boolean | |
SupportsSorting | boolean |
Property name | Data type | Description |
---|---|---|
Id | integer | |
ShownValues | array |