Skip to main content

Extension Fields

Summary

An extension field is a key-value pair, where the key is a string, and the value is a string or list of strings.

Extension fields are used to hold values that do not have an explicit representation in the SyncHive schema.

Data Definitions

Data TypeField NameRulesAbout
AttributeFieldattributeFieldZero to ManyRefer to: Atttribute Field
ExtensionFieldextendedByZero to ManyRefer to: Extension Field
ExternalIDexternalIdentityZero to ManyRefer to: External ID
StringkeyExactly Onethe key for the extension field
RecordedByUserrecordedByZero to ManyRefer to: Recorded By User
StringsourceSystemCodeZero or OneRefer to: Source System
StringsourceSystemIDZero or OneRefer to: Source System
StringuniqueTextExactly OneA unique primary key for the item assigned by SyncHive.
StringvalueZero to Manythe value for the extension field

Sample JSON

An example product with 3 extension fields capturing information about the product that is not explicitly represented in the SyncHive schema:

{
"@type": "Product",
"externalIdentity": [
{
"@type": "ExternalID",
"internalType": "Product",
"externalSystemCode": "Config1",
"externalId": "DEV-10002282"
}
],
"extendedBy": [
{
"@type": "ExtensionField",
"key": "SmartPartNumber",
"value": [
"DEV-10002282_2"
],
"uniqueText": "7c48852f-7371-46a1-b49d-5d6a870e071c"
},
{
"@type": "ExtensionField",
"key": "inventoryType",
"value": [
"2"
],
"uniqueText": "17f27f97-6fa9-49d6-9a66-0f4506ca5876"
},
{
"@type": "ExtensionField",
"key": "additionalDistributionChannel",
"value": [
"99"
],
"uniqueText": "66621d84-57cc-41bd-b1b6-c4c07b0358f4"
}
],
...
}