This runs the rules that are related to the deleted products.

applyConstraintRulesOnDeletewebService static void applyConstraintRulesOnDelete(Id cartId, List deletedProductIds)

cartIdIDThe id of the cart.
deletedProductsIdsList<ID>This is a list of product ids of the line item deleted from the cart.

Code Sample

The sample below enables you to delete any constraint rules applied to a product that is deleted by a customer. For example, for all products you have added an inclusion constraint rule which states whenever you add a product, an installation charge is included along with the product. When the user deletes the product from the cart, this API enables you to delete the associated installation constraint rule applied to the product. Using the Product_ID parameter you can specify the product from which the constraint rule is to be disassociated from.

Apttus_CPQApi.CPQWebService.applyConstraintRulesOnDelete(CART_ID, new String[] {PRODUCT_IDS});

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.

Response/Request XML

Example Request

<soapenv:Envelope xmlns:soapenv="" xmlns:cpq="">

Example Response

<soapenv:Envelope xmlns:soapenv="" xmlns="">