Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

Show Page Sections

Cancelling Customer Purchase Orders

This API cancels a Customer Purchase Order.

API Details

API

Signature

cancelCustomerPO

webService static Apttus_Config2.CPQStruct.CancelCustomerPOResponseDOcancelCustomerPO(Apttus_Config2.CPQStruct.CancelCustomerPORequestDO)

Parameters

Name

Type

Description

request

Apttus_Config2.CPQStruct.CancelCustomerPORequestDO

The request data object.

Request Data Object - Apttus_Config2.CPQStruct.CancelCustomerPORequestDO

Field

Type

Required?

Description

CustomerPOId

ID

Yes

Unique identifier of the latest version of the customer purchase order to be cancelled.

API Response

Response Data Object - CPQStruct.CancelCustomerPOResponseDO

Field

Type

Description

CancelCustomerPOSO

Standard Data Object

The fields of the Cancel Order Object.

Code Sample

The following sample allows you to cancel a customer purchase order.

// Create the Cancel Request Data Object
CPQStruct.CancelCustomerPORequestDO request = new CPQStruct.CancelCustomerPORequestDO();
request.CustomerPOId = customerPO.Id;

CPQStruct.CancelCustomerPOResponseDO result = new CPQStruct.CancelCustomerPOResponseDO();
result = CustomerPOWebservice.cancelCustomerPO(request);
// returns next version of customerpurchaseOder
system.debug(result.CancelCustomerPOSO);