Reverting Cancelled Customer Purchase Orders
This API reverts the cancellation of a customer purchase order.
API Details
| API | Signature | 
|---|---|
| undoCancelCustomerPO | 
                               | 
| Parameters | ||
|---|---|---|
| Name | Type | Description | 
| request | 
 | The request data object. | 
| Request Data Object - Apttus_Config2.UndoCancelCustomerPORequestDO | |||
|---|---|---|---|
| Field | Type | Required? | Description | 
| CustomerPOId | 
 | Yes | Unique identifier of the latest version of cancelled customer purchase order. | 
API Response
| Response Data Object - CPQStruct.UndoCancelOrderResponseDO | ||
|---|---|---|
| Field | Type | Description | 
| PreviousCustomerPurchaseOrderSO | 
 | The fields of the previous customer purchase order object. | 
Code Sample
The following sample allows you to roll back cancellation of a customer purchase order.
//undocancel customerPurchaseOrder CPQStruct.UndoCancelCustomerPORequestDO request = new CPQStruct.UndoCancelCustomerPORequestDO(); request.CustomerPOId = CustomerPOId; CPQStruct.UndoCancelCustomerPOResponseDO result = CustomerPOWebService.undoCancelCustomerPO(request); system.debug(result.PreviousCustomerPurchaseOrderSO);

