This API finalizes the configuration version and related line items. After the configuration is finalized, an email notification is sent when concurrent access enabled for the cart. The cart should be configured and priced before invoking this API. You can create a button to finalize the cart which the user can click to invoke this API once the products in the cart are adjusted and final.

APISignature
finalizeConfigurationwebService static void finalizeConfiguration(Id configId)



Request Parameter
NameTypeDescription
configIdIDThe ID of product configuration you want to finalize.


Code Sample

The sample code below enables you to finalize a cart with a specific configuration and synchronizes the products (line items) added to the cart with the quote or proposal used to generate the cart.



/** 
 * Below method demonstrate to finalize the cart by passing the configuration request Id.
*/
public void finalizeCart(Id configId)
{
    // finalize the cart         
    Apttus_Config2.CPQWebService.finalizeConfiguration(configId);    
}
CODE

Integration Details

Use the following information in your integrations with Apttus CPQ Web Services API. Refer to Integrating Apttus with External Systems for information on how to get started.

API Prerequisites

Response/Request XML

Example Request

<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:cpq="http://soap.sforce.com/schemas/class/Apttus_Config2/CPQWebService">
    <soapenv:Header>
        <cpq:SessionHeader>
            <cpq:sessionId>00DZ000000NAEIA!ASAAQN7k3xhhvMe.j.8gpR.ijcGq77HJeF4MEDfbxbBAqZ8r4WWNTv3OVb6o1bjtHJLbq5mvHcuAH_ie6sTC3DzrWgnLdUuD</cpq:sessionId>
        </cpq:SessionHeader>
    </soapenv:Header>
    <soapenv:Body>
        <cpq:finalizeConfiguration>
            <cpq:configId>a1OZ0000002YrHD</cpq:configId>
        </cpq:finalizeConfiguration>
    </soapenv:Body>
</soapenv:Envelope>
XML

Example Response

<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="http://soap.sforce.com/schemas/class/Apttus_Config2/CPQWebService">
    <soapenv:Body>
        <finalizeConfigurationResponse/>
    </soapenv:Body>
</soapenv:Envelope>
XML