CancelCustomerPO()

Cancels a Customer Purchase Order

API Details

Parameters
NameTypeDescription
request

Apttus_Config2.CPQStruct.CancelCustomerPORequestDO

The request data object.

Request Data Object - Apttus_Config2.CPQStruct.CancelCustomerPORequestDO
FieldTypeRequired?Description
CustomerPOIdIDYesUnique identifier of the latest version of the customer purchase order to be cancelled.


API Response

Response Data Object - CPQStruct.CancelCustomerPOResponseDO
FieldTypeDescription
CancelCustomerPOSOStandard 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);
CODE