Standard Cart APIs
The standard cart APIs leverage standard Salesforce libraries, Scale Cache for optimized processing, and refactored pricing and validation methods to minimize the number of SOQL queries and DML operations. These enhancements improve the performance of the APIs. You can enable only the following standard cart APIs. The cart APIs will continue to work using Apex libraries. We recommend that you review the usage considerations before enabling the standard cart APIs.
API | Resource | Available Version |
---|---|---|
Get Cart Items | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID} | Winter'23 |
Get Cart Summary | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}?headerFieldSet={field_set_feature}&validate={true or false} | Winter'23 |
Get List of Products | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/products | Winter'23 |
Add Items to Cart | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items | Winter'23 |
Asset to Order | /services/apexrest/{namespace}/v2/carts | Winter'23 |
Update Items in Cart | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items | Winter'23 |
Replace Offers | /services/apexrest/{namespace}/v2/cpq/carts/offermigration/replacement | Winter'23 |
Run Pricing for Items to Cart | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/price | Winter'23 |
Get Line Items by ID | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items?id=<value> | Spring'24 |
Checkout Items in Cart | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items/checkout | Spring'24 |
Create Cart | /services/apexrest/{namespace}/v2/carts | Spring'24 |
Check Status of the Cart | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items/checkout | Spring'24 |
Remove Items from Cart | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items | Summer'24 |
Delete Applied Promotion Items | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/promotions | Summer'24 |
Delete Discount | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/discounts | Summer'24 |
Multi-Edit Cart Line Items | /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/items | Summer'24 |
For required permission sets and licenses refer the following.
To work with CPQ configuration settings refer CPQ Configuration Settings Reference.