This deletes the selected cart in Draft status.

APISignature
abandonCartwebService static Apttus_CPQApi.CPQ.AbandonCartResponseDO abandonCart(Apttus_CPQApi.CPQ.AbandonCartRequestDO request)



Parameters
NameTypeDescription
requestApttus_CPQApi.CPQ.AbandonCartRequestDOThe request data object.



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



Response Data Object - Apttus_CPQApi.CPQ.AbandonCartResponseDO
FieldTypeDescription
IsSuccessBooleanIndicates whether the cart is deleted successfully.


Code Sample

The sample below enables you to send an API request for abandon cart along with the cart ID. The cart whose id has been passed will be abandoned when the request is successful. The response message in the sample indicates whether the request was successful. When the user clicks Abandon Cart the abandonCart API will be invoked and the cartID associated with the request is abandoned.
 

public void abandonCart()
{
	Apttus_CPQApi.CPQ.AbandonCartRequestDO request = new Apttus_CPQApi.CPQ.AbandonCartRequestDO();
	request.CartId = cartId;
	
	Apttus_CPQApi.CPQ.AbandonCartResponseDO response = Apttus_CPQApi.CPQWebService.abandonCart(request);
	ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.info, 'Success: ' + response.IsSuccess));
}
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

Request/Response 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:abandonCart>
            <cpq:request>
                <cpq1:CartId>a1OZ0000002YqyaMAC</cpq1:CartId>
            </cpq:request>
        </cpq:abandonCart>
    </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:AbandonCartResponseDO="http://soap.sforce.com/schemas/class/Apttus_CPQApi/CPQ">
    <soapenv:Body>
        <abandonCartResponse>
            <result>
                <AbandonCartResponseDO:IsSuccess>true</AbandonCartResponseDO:IsSuccess>
            </result>
        </abandonCartResponse>
    </soapenv:Body>
</soapenv:Envelope>
XML