---
schema_version: "1"
id: 569bb55ee831467c42fb4f934aeb608b64305b4f9a7048dbd1b97dc80f119122
title: JSON Structure for Pricing Information
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_concept_user_json_structure.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_concept_user_json_structure.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 822644c95e355085481466fa56706f40a6de8d36c5fb63f0af8e185c45250ce8
description: 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.
products:
  - Consumer Goods
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled</td></tr></tbody></table>

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:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d83398e67">Non-optimized field Name</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d83398e70">Optimized field Name</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">cndCpMetaPKey</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">met</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">—</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">
            <p>v</p>
            <p style="margin-bottom:0;">New version field.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">cndCpCalculationPosition</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">clcPos</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">cndCpSearchStrategyKTRelPos</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">searchPos</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">conditionBaseValue</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">nBase</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">conditionValue</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">value</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">conditionUnit</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">unit</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">unitFactor</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">factor</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">convertedConditionValue</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">cnvValue</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">conditionResult</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">result</td>

        </tr>
        <tr class="">
          <td data-label="Non-optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e67 ">cpIsPrintRelevant</td>

          <td data-label="Optimized field Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e70 ">print</td>

        </tr>
      </tbody>
    </table>

The table shows details of the pricing information fields in nonoptimized and optimized JSON formats:

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d83398e202">NonOptimized field Details</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d83398e205">Optimized field details</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="NonOptimized field Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e202 ">
            <p>Order Header</p>
            <p>[{</p>
            <p>"pKey": "Local_13560d82-5f80fb2e",</p>
            <p>"sdoMainPKey":
              "Local_79814564-a7cb4373",</p>
            <p>"sdoItemPKey": " ",</p>
            <p>"text1": "Total Net
              Value",</p>
            <p>"prdMainPKey": " ",</p>
            <p>"currency":
              "USD",</p>
            <p>"currencyConversionRate": 1,</p>
            <p>"cndCpCalculationPosition":
              215,</p>
            <p>"cndCpSearchStrategyKTRelPos": "0",</p>
            <p>"conditionBaseValue":
              0,</p>
            <p>"conditionUnit": " ",</p>
            <p>"unitFactor":
              0,</p>
            <p>"convertedConditionValue": 17.330000000000002,</p>
            <p>"conditionResult":
              17.330000000000002,</p>
            <p>"cndCpMetaPKey":
              "a0i2X00000g36YFQAY",</p>
            <p>"conditionValue":
              "17.330000000000002",</p>
            <p>"cpIsPrintRelevant": "0"</p>
            <p style="margin-bottom:0;">}]</p>
          </td>

          <td data-label="Optimized field details" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e205 ">
            <p>Order Header</p>
            <p>[{</p>
            <p>"v": "2",</p>
            <p>"clcPos": 215,</p>
            <p>"searchPos":
              "0",</p>
            <p>"nBase": 0,</p>
            <p>"value": "0",</p>
            <p>"unit":
              "SalesUnit",</p>
            <p>"factor": 0,</p>
            <p>"cnvValue": 0,</p>
            <p>"result": 0,</p>
            <p>"met":
              "a0i2X00000g36YFQAY",</p>
            <p>"print": "0"</p>
            <p style="margin-bottom:0;">}]</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="NonOptimized field Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e202 ">
            <p>Order Item</p>
            <p>[{</p>
            <p>"pKey": "Local_084385dc-2d42cf22",</p>
            <p>"sdoMainPKey":
              "Local_79814564-a7cb4373",</p>
            <p>"sdoItemPKey":
              "Local_55e911b3-6c10b518",</p>
            <p>"text1": "CT_Grouping_A_Q_F",</p>
            <p>"prdMainPKey":
              " ",</p>
            <p>"currency": "USD",</p>
            <p>"currencyConversionRate":
              1,</p>
            <p>"cndCpCalculationPosition": 460,</p>
            <p>"cndCpSearchStrategyKTRelPos":
              "10",</p>
            <p>"conditionBaseValue": 1,</p>
            <p>"conditionUnit":
              "SalesUnit",</p>
            <p>"unitFactor": 1,</p>
            <p>"convertedConditionValue":
              0,</p>
            <p>"conditionResult": 0,</p>
            <p>"cndCpMetaPKey":
              "a0i2X00000g36Z4QAI",</p>
            <p>"conditionValue": "0",</p>
            <p>"cpIsPrintRelevant":
              "1"</p>
            <p>"sdoItemErpId": "Local_55e911b3-6c10b518"</p>
            <p style="margin-bottom:0;">}]</p>
          </td>

          <td data-label="Optimized field details" class="slds-cell-wrap" style="vertical-align:top;" headers="d83398e205 ">
            <p>Order Item</p>
            <p>[{</p>
            <p>"v": "2",</p>
            <p>"clcPos": 460,</p>
            <p>"searchPos":
              "10",</p>
            <p>"nBase": 1,</p>
            <p>"value": "0",</p>
            <p>"unit":
              "SalesUnit",</p>
            <p>"factor": 1,</p>
            <p>"cnvValue": 0,</p>
            <p>"result": 0,</p>
            <p>"met":
              "a0i2X00000g36Z4QAI",</p>
            <p>"print": "1"</p>
            <p style="margin-bottom:0;">}]</p>
          </td>

        </tr>
      </tbody>
    </table>

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).