This API cancels a Customer Purchase Order.

API DetailsLink to API Details

API
Signature
cancelCustomerPOwebService 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
CustomerPOIdIDYesUnique identifier of the latest version of the customer purchase order to be cancelled.


API ResponseLink to API Response

Response Data Object - CPQStruct.CancelCustomerPOResponseDO
Field
Type
Description
CancelCustomerPOSOStandard Data Object The fields of the Cancel Order Object.


Code SampleLink to 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