Price Items in Cart (Query)
Retrieve current prices for the items in the cart.
This API provides a way of retrieving minimal pricing fields to refresh the UI. It is called by the UI after a
putCartsItems call. When this API is called by the CPQ cart UI, it uses
price=false, so the pricing interface implementation is not executed.
This API can be called either through REST or through Apex remote calls. The default value for the
price parameter is
price=false is not specified, pricing is executed by default. Specify
price=false if you do not want to execute 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.
For API parameter names and descriptions, see Cart-Based API Swagger Reference.
price=true will run the pricing engine, which can negatively impact performance. To enhance performance, set
price=false to return pricing information without repricing.