Get Price Waterfall for Price

Get the price waterfall for a price. The Get Price Details API retrieves the pricing details for a price field based on the cart context—opportunity, quote, order—specified by the cartId parameter and the line item ID.

Only the <!-- update link when Dev Doc topic moves to DSC-->PricingElementServiceImplementation supports the Get Price Details API.

GET /v2/cpq/carts/{cart_ID}/items/{ID}/pricing

This API supports the guest user enhancements that Salesforce introduced with the Winter ‘21 release. To encrypt and decrypt data for guest users, use the UserSecurity class with this API. See Guest User Technical Details.

For additional information, ​see UserSecurity Class and CPQ and Digital Commerce Changes for Guest Users.

Remote Method

getPriceDetail

Package

Communication (vlocity_cmt)

API Parameters and Response Format

For API parameter names and descriptions, see Cart-Based API Swagger Reference.

Resource Information

Response Format JSON
Resource URL /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items/{ID}/pricing

Example Request

GET
/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000goGv/items/80246000000gZfO/pricing?fields=vlocity_cmt__OneTimeCharge__c

Example Response

{
   "totalSize": 1,
   "messages": [],
   "records": [
      {
         "messages": [],
         "displaySequence": -1,
         "id": "80246000000gZfOAAU",
         "vlocity_cmt__OneTimeCharge__c": {
            "pricedetail": [
               {
                  "actions": {},
                  "DetailType": "PRICE",
                  "Description": "$50 One Time Standard Price",
                  "StartValue": 50,
                  "EndValue": 50,
                  "AdjustmentType": "None",
                  "AdjustmentMethod": null,
                  "AdjustmentValue": 0
               },
               {
                  "actions": {},
                  "DetailType": "ADJUSTMENT",
                  "Description": "5% Discount on OT Std Price due to Bundle A...",
                  "StartValue": 50,
                  "EndValue": 47.5,
                  "AdjustmentType": "Discount",
                  "AdjustmentMethod": "Percent",
                  "AdjustmentValue": -5
                  },
                  {
                     "actions": {},
                     "DetailType": "ADJUSTMENT",
                     "Description": "10% Discount on OT Std Price due to Promotion 'Add Bundle A'",
                     "StartValue": 47.5,
                     "EndValue": 42.5,
                     "AdjustmentType": "Discount",
                     "AdjustmentMethod": "Percent",
                     "AdjustmentValue": -10
                  },
                  {
                     "actions": {},
                     "DetailType": "ADJUSTMENT",
                     "Description": "Additional 10% - Add Child 2 Promo",
                     "StartValue": 42.5,
                     "EndValue": 37.5,
                     "AdjustmentType": "Discount",
                     "AdjustmentMethod": "Percent",
                     "AdjustmentValue": -10
                  }
               ]
            }
         }
      ]
}