The Product Specification Object
A Product Specification entry relates a Specification Value with a Product.
Properties
Unlike the global Specification Value object, the Product Specification entry object is not sequenced.
id read-only
An unsigned 64-bit integer, which is unique across all Product Specifications and all Evance Accounts. |
productId
An unsigned 64-bit integer representing the Product the specification is assigned to. |
spec
A Specification object may be supplied as a string or object when you do not know the specId ,
or when adding a new Specification.
|
specId
An unsigned 64-bit integer representing the Specification. This ID is not required and may be ignored when supplying the valueId .
You only need to supply the specId when supplying a new value object
for the Specification.
|
value
A Specification Value may be supplied as a string or object instead of a valueId
when adding a new specification value, and may be used in conjunction with spec or specId .
|
valueId
An unsigned 64-bit integer representing the Specification Value. The only ID required when assigning a Specification Value to a Product is the valueId ,
because the specId
is inferred from the Specification Value.
|
Specification uniqueness
You should be aware that:
- A Specification Value may not be assigned to the same product more than once.
- A Product may have more than one Specification Value associated with the same Specification heading (unless the Specification heading is being used as a variance).
For example, it would be perfectly legitimate for a food-based Product to have multiple flavours:
- Flavour = Chocolate
- Flavour = Orange