Computing the Net Price for a Bundle
This API is used to calculate the price for the individual and summary line items of the cart. It runs the pricing rules, calculate bundle, line item, option level net prices and update the cart line with calculated prices. After the pricing is calculated for the cart line items, the resulting information is stored in the Line Item and Summary Group objects.
This API will also apply all the relevant rules and calculate the pricing including the following among others:
- Line Item level discount
- Total Price based on the specified quantity
- Applied Tiered Pricing
- Apply Ramp Pricing
- Apply Contractual Pricing
- Apply Related Pricing Rules
API |
Signature |
---|---|
computeNetPriceForBundle |
webService static Apttus_CPQApi.CPQ.ComputeNetPriceResponseDO computeNetPriceForBundle(Apttus_CPQApi.CPQ.ComputeNetPriceRequestDO request) |
Parameters |
||
---|---|---|
Name |
Type |
Description |
request | Apttus_CPQApi.CPQ.ComputeNetPriceRequestDO |
The request data object. |
Request Data Object - Apttus_CPQApi.CPQ.ComputeNetPriceRequestDO |
||
---|---|---|
Field |
Type |
Description |
CartId | ID |
The Id of the cart. |
LineNumber | Decimal |
The bundle line number. |
Response Data Object - Apttus_CPQApi.CPQ.ComputeNetPriceResponseDO |
||
---|---|---|
Field |
Type |
Description |
IsSuccess | Boolean |
Indicates whether getting the total net price was successful. |
Code Sample
The sample below prompts the user with the appropriate messages if a cart does not exist or when no products exist in the cart. If the user clicks calculate net price and products exist in the cart, the API computes the net price for all the line numbers of products in the cart with a specific cartID. For example, if the user wants to check the aggregate price of all the products in the cart, you can create a Total Net Price button on your cart page and invoke the computeNetPriceForBundle() API on click of the button. The API will calculate the total price taking into account any discount or pricing rules associated with the line items in the cart.
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.