This finalizes the cart, synchronizing the cart line items with the quote/proposal.

APISignature
finalizeCartwebService static Apttus_CPQApi.CPQ.FinalizeCartResponseDO finalizeCart(Apttus_CPQApi.CPQ.FinalizeCartRequestDO request)



Parameters
NameTypeDescription
requestApttus_CPQApi.CPQ.FinalizeCartRequestDOThe request data object.



Request Data Object - Apttus_CPQApi.CPQ.FinalizeCartRequestDO
FieldTypeDescription
CartIdIDThe Id of the cart.



Response Data Object - Apttus_CPQApi.CPQ.FinalizeCartResponseDO
FieldTypeDescription
IsSuccessBooleanIndicates whether finalizing the cart items was successful.


Code Sample

The sample enables you to finalize a cart with a specific cartID and synchronizes the products (line items) added to the cart with the quote or proposal used to generate the cart. You can create a button finalize cart which the user will click once the products in the cart are adjusted and final. Invoke this API on click of the button.
 

 public void finalizeCart()
    {
        // create the finalize cart request          
        Apttus_CpqApi.CPQ.FinalizeCartRequestDO request = new Apttus_CpqApi.CPQ.FinalizeCartRequestDO();          
       
		// add request parameters          
        request.CartId = CartId;          
        
		// finalize the cart          
        Apttus_CpqApi.CPQ.FinalizeCartResponseDO response = Apttus_CpqApi.CPQWebService.finalizeCart(request);     
    }
CODE

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.

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_CPQApi/CPQWebService"
    xmlns:cpq1="http://soap.sforce.com/schemas/class/Apttus_CPQApi/CPQ">
    <soapenv:Header>
        <cpq:SessionHeader>
            <cpq:sessionId>00DZ000000NAEIA!ASAAQN7k3xhhvMe.j.8gpR.ijcGq77HJeF4MEDfbxbBAqZ8r4WWNTv3OVb6o1bjtHJLbq5mvHcuAH_ie6sTC3DzrWgnLdUuD</cpq:sessionId>
        </cpq:SessionHeader>
    </soapenv:Header>
    <soapenv:Body>
        <cpq:finalizeCart>
            <cpq:request>
                <cpq1:CartId>a1OZ0000002YqyaMAC</cpq1:CartId>
            </cpq:request>
        </cpq:finalizeCart>
    </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_CPQApi/CPQWebService"
    xmlns:FinalizeCartResponseDO="http://soap.sforce.com/schemas/class/Apttus_CPQApi/CPQ">
    <soapenv:Body>
        <finalizeCartResponse>
            <result>
                <FinalizeCartResponseDO:IsSuccess>true</FinalizeCartResponseDO:IsSuccess>
            </result>
        </finalizeCartResponse>
    </soapenv:Body>
</soapenv:Envelope>
XML