Pricing (POST)

Create and hydrate context instance in a single request. Provide a comprehensive response that contains final pricing details per line items and related errors, if any.
Resource
/connect/core-pricing/pricing
Resource example
https://yourInstance.salesforce.com/services/data/v63.0/connect/core-pricing/pricing
Available version
60.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
JSON example
{
  "contextDefinitionId": "11Oxx0000006PdxEAE",
  "contextMappingId": "11jxx0000004LDDAA2",
  "jsonDataString": {
    "Cart": [
      {
        "id": "cart_1001",
        "cart_id": "cart_1001",
        "PriceBookId": "PriceBookId_1001",
        "businessObjectType": "Cart",
        "CartItem": [
          {
            "id": "lineItem_1001",
            "line_item_id": "lineItem_1001",
            "Quantity": 7,
            "PriceType": "OneTime",
            "Frequency": "",
            "UOM": "",
            "businessObjectType": "CartItem",
            "product_id": "01txx0000006i44AAA",
            "UnitPrice": 6.8,
            "NetUnitPrice": 0,
            "Attribute": [
              {
                "name": "Color",
                "code": "RED",
                "isPriceImpacting": true,
                "businessObjectType": "Attribute",
                "id": "Attribute_1001",
                "attribute_id": "Attribute_1001"
              },
              {
                "name": "Size",
                "code": "10INCH",
                "isPriceImpacting": true,
                "businessObjectType": "Attribute",
                "id": "Attribute_1002",
                "attribute_id": "Attribute_1002"
              }
            ]
          },
          {
            "id": "lineItem_1002",
            "line_item_id": "lineItem_1002",
            "quantity": 3,
            "PriceType": "OneTime",
            "Frequency": "",
            "UOM": "",
            "businessObjectType": "CartItem",
            "product_id": "01txx0000006i2SAAQ",
            "unitprice": 6,
            "NetUnitPrice": 0,
            "Attribute": [
              {
                "name": "Color",
                "code": "BLUE",
                "isPriceImpacting": true,
                "businessObjectType": "Attribute",
                "id": "Attribute_1003",
                "attribute_id": "Attribute_1003"
              },
              {
                "name": "Size",
                "code": "6INCH",
                "isPriceImpacting": true,
                "businessObjectType": "Attribute",
                "id": "Attribute_1004",
                "attribute_id": "Attribute_1004"
              }
            ]
          }
        ]
      }
    ]
  },
  "pricingProcedureId": "9QMxx0000004CKKGA2",
  "configurationOverrides": {
    "skipWaterfall": true,
    "useSessionScopedContext": true,
    "persistContext": true,
    "taggedData": false
  }
}
Properties
Name Type Description Required or Optional Available Version
configuration​Overrides Configuration Override Input Parameters to override the pricing configuration. Optional 60.0
context​Definition​Id String ID of the context definition that defines the structure of the input data. Required 60.0
context​Mapping​Id String ID of the context mapping that maps the input data to the context instance. Required 60.0
json​Data​String String

Data to hydrate the context, which must be in JSON format and passed as String. Pass the JSON data as String by using the stringify() method to convert the object to string.

The keys in the jsonDataString property must be in accordance to the contextMappingId property sent in the request.

Required 60.0
pricing​Procedure​Id String ID or API name of the pricing procedure used for calculating the prices. A pricing procedure is represented as an Expression Set Definition in the system. Optional 60.0
Response body for POST
Pricing Output