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);