This API undo or revert an amended Customer Purchase Order (Composite API). For example, You can roll back the changed order date to the previous date using this API.

API Details

APISignature
undoAmendCustomerPOwebService static Apttus_Config2.CPQStruct.UndoAmendCustomerPOResponseDOundoAmendCustomerPO(Apttus_Config2.CPQStruct.UndoAmendCustomerPORequestDO)
Parameters
NameTypeDescription
requestApttus_Config2.CPQStruct.UndoAmendCustomerPORequestDOThe request data object.



Request Data Object - Apttus_Config2.CPQStruct.UndoAmendCustomerPORequestDO
FieldTypeRequired?Description
CustomerPOIdIDYesUnique identifier of the amended order.


API Response

Response Data Object - CPQStruct.UndoAmendCustomerPOResponseDO
FieldTypeDescription
PreviousCustomerPurchaseOrderSOStandard Data Object The fields of the Previous Order Object.


Code Sample

The following sample allows you to roll back an amendment to an order.

 //undoamend customerPurchaseOrder
CPQStruct.UndoAmendCustomerPORequestDO request = new CPQStruct.UndoAmendCustomerPORequestDO();
request.CustomerPOId = CustomerPOId;  
            
CPQStruct.UndoAmendCustomerPOResponseDO result = CustomerPOWebService.undoAmendCustomerPO(request);    
system.debug(result.PreviousCustomerPurchaseOrderSO)
CODE