Skip to main content

The Configuration Object

The configuration object represents a configured product (including all selected options) and is the main payload returned by DIVA events (e.g. add-to-basket, save).

It is a rich object with many fields that are only relevant for specific modules or internal UI use cases. This page focuses on the fields that are typically relevant for webshop integrations.

[WIP] Work in Progress

This documentation is currently under development. If you encounter any gaps, please contact your project manager at Crystal Design.

Structure

Most relevant information is contained within OrderSets and their OrderLines.
The fields below are based on the standard OrderLines structure.

note

Client-specific OrderLines are possible and can be structured to match the webshop’s expectations.

Common fields

FieldExampleDescriptionRequired
DivaNrDIVA-123456The ID of the configurationYes
OrigProductIdHLxyllmbDThe ID of the product that was used to initialize the configuratorNo (only if initalized by product)
DocumentVersion3The version of the configurationYes
DivaNrVersionDIVA-123456-3The ID and the version combinedYes
SetImagehttps://img.jpgThe 3D image of the configurationNo (only if 3D data exists)
Set2DImagehttps://img.jpgThe 2D image of the configurationYes
ProductImagehttps://img.jpgThe 3D image if it exists, otherwise the 2D imageYes
ProductSetNameMyBedThe display name of the configured productYes
OrderSets[0].OrderLines[...]List of all configured items (main item + accessories) see OrderLines-

OrderLines fields

OrderLines represent the individual items of the configuration (main product plus related items such as accessories).
The following fields are commonly used for webshop integrations.

FieldExampleDescriptionRequired
BasketIDB123456Line identifier. Can be used to relate other lines (e.g. accessories).Yes
PosNr1 / 1.1Position number; sub-items can be represented as sub-positions (e.g. 1.1).Yes
CatalogCodexCHAIRSCatalog reference for this line.Yes
ArticleCodex5862Article/variant codex for this line.Yes
Quantity2Quantity for this line.Yes
NameMyBedDisplay name of the item/line.Yes
VariantDesc...Human-readable configuration descriptionYes
RetailArticleNr123-ABCThe article ID/SKU in the retailer’s system.Yes
Width200WidthYes
Depth180DepthYes
Height110HeightYes
VKPrice.Price999.0Unit priceNo (if DIVA displays prices)
VariantBasketDatas[...]List of selected option/value pairs for this line, see Variant valuesNo (if DIVA displays prices)

Variant values (VariantBasketDatas)

Configurations also contain the selected options/values for a line in VariantBasketDatas.

FieldExampleDescriptionRequired
OPTOPT_COLOROption identifier.YES
OPVOPV_BLUEOption value identifier.YES
OPTNameColorOption display label.No
OPVNameBlueOption value display label.No

Note on the configuration ID / versioning

The DivaNr uniquely identifies a configuration.
Often it is used together with a version, either as separate DocumentVersion or as a combined string (DivaNrVersion).

Example: DIVA-12345-2 represents version 2 of configuration DIVA-12345.