JSON Structure for Pricing Information
During penny perfect pricing calculation, the pricing information of the order header steps and order item steps is stored as JSON files in the object's pricing information fields.
Required Editions
| Available in: Lightning Experience in Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled |
If a JSON file has lengthy field names, the file is optimized to shorten the field names. For example, if an order is huge due to multiple order items, the JSON file is optimized to reduce the order size. A new version field named v indicates the version information of the optimized JSON file.
The table shows the nonoptimized JSON field names and the optimized JSON field names:
| Non-optimized field Name | Optimized field Name |
|---|---|
| cndCpMetaPKey | met |
| — | v New version field. |
| cndCpCalculationPosition | clcPos |
| cndCpSearchStrategyKTRelPos | searchPos |
| conditionBaseValue | nBase |
| conditionValue | value |
| conditionUnit | unit |
| unitFactor | factor |
| convertedConditionValue | cnvValue |
| conditionResult | result |
| cpIsPrintRelevant |
The table shows details of the pricing information fields in nonoptimized and optimized JSON formats:
| NonOptimized field Details | Optimized field details |
|---|---|
Order Header [{ "pKey": "Local_13560d82-5f80fb2e", "sdoMainPKey": "Local_79814564-a7cb4373", "sdoItemPKey": " ", "text1": "Total Net Value", "prdMainPKey": " ", "currency": "USD", "currencyConversionRate": 1, "cndCpCalculationPosition": 215, "cndCpSearchStrategyKTRelPos": "0", "conditionBaseValue": 0, "conditionUnit": " ", "unitFactor": 0, "convertedConditionValue": 17.330000000000002, "conditionResult": 17.330000000000002, "cndCpMetaPKey": "a0i2X00000g36YFQAY", "conditionValue": "17.330000000000002", "cpIsPrintRelevant": "0" }] |
Order Header [{ "v": "2", "clcPos": 215, "searchPos": "0", "nBase": 0, "value": "0", "unit": "SalesUnit", "factor": 0, "cnvValue": 0, "result": 0, "met": "a0i2X00000g36YFQAY", "print": "0" }] |
Order Item [{ "pKey": "Local_084385dc-2d42cf22", "sdoMainPKey": "Local_79814564-a7cb4373", "sdoItemPKey": "Local_55e911b3-6c10b518", "text1": "CT_Grouping_A_Q_F", "prdMainPKey": " ", "currency": "USD", "currencyConversionRate": 1, "cndCpCalculationPosition": 460, "cndCpSearchStrategyKTRelPos": "10", "conditionBaseValue": 1, "conditionUnit": "SalesUnit", "unitFactor": 1, "convertedConditionValue": 0, "conditionResult": 0, "cndCpMetaPKey": "a0i2X00000g36Z4QAI", "conditionValue": "0", "cpIsPrintRelevant": "1" "sdoItemErpId": "Local_55e911b3-6c10b518" }] |
Order Item [{ "v": "2", "clcPos": 460, "searchPos": "10", "nBase": 1, "value": "0", "unit": "SalesUnit", "factor": 1, "cnvValue": 0, "result": 0, "met": "a0i2X00000g36Z4QAI", "print": "1" }] |
JSON is written in non-optimized format when you set the order template for Generate Pricing Information to Yes.
JSON is written in optimized format when you set the order template for Generate Pricing Information to Yes (Optimized Version).

