Price Breakup for a Cart or Specific Line Item
This method can be used to retrieve the price breakup for a cart or specific line item.
API |
Signature |
---|---|
getPriceBreakup |
webService static Apttus_CPQApi.CPQ.GetPriceBreakupResponseDO getPriceBreakup(Apttus_CPQApi.CPQ.GetPriceBreakupRequestDO request) |
Parameters |
||
---|---|---|
Name |
Type |
Description |
request | Apttus_CPQApi.CPQ.GetPriceBreakupRequestDO |
The request data object. |
Request Data Object - Apttus_CPQApi.CPQ.GetPriceBreakupRequestDO |
|||
---|---|---|---|
Name |
Type |
Required |
Description |
CartId | ID |
Yes |
The ID of the new cart object. Mandatory parameter. |
LineItemId | ID |
No |
The ID of the line item. This can be null. If it is null the price breakup for all applicable line items in the cart is retrieved. If a value is provided, only the price breakup for that specific line item is retrieved. |
Response Data Object - Apttus_CPQApi.CPQ.GetPriceBreakupResponseDO |
||
---|---|---|
Name |
Type |
Description |
HasPriceBreakups | Boolean |
Indicates whether there are price breakups for the cart. |
PriceBreakups | List
<Apttus_CPQApi.CPQ.PriceBreakupCollDO> |
The list of price breakup collection objects |
Data Object - Apttus_CPQApi.CPQ.PriceBreakupCollDO |
||
---|---|---|
Name |
Type |
Description |
BreakupItems | List<Apttus_Config2__PriceBreakup__c> |
The list of price breakup sobjects associated with the line item. |
LineItemId | ID |
The ID of the line item associated with the price break sobjects. |
Code Sample
Using the sample below you can enable the end-user to view the price breakup for a selected product. Suppose the user has selected a product Laptop, using the Price Breakup API, you can show the end-user the pricing breakup. For example, if the user has bought 25 laptops and for 20 quantities of the laptop a 5% discount is provided on the net price, and for the other 5 quantities, a discount of 10% is given. Using the getPriceBreakup API you can show the user the tiered pricing pattern applied to a product.
Integration Details
Use the following information in your integrations with CPQ Web Services API. Refer to Integrating Conga with External Systems for information on how to get started.