Reverting Amended Customer Purchase Orders
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
|
API |
Signature |
|---|---|
|
undoAmendCustomerPO |
|
|
Parameters |
||
|---|---|---|
|
Name |
Type |
Description |
|
request |
|
The request data object. |
|
Request Data Object - Apttus_Config2.CPQStruct.UndoAmendCustomerPORequestDO |
|||
|---|---|---|---|
|
Field |
Type |
Required? |
Description |
|
CustomerPOId |
|
Yes |
Unique identifier of the amended order. |
API Response
|
Response Data Object - CPQStruct.UndoAmendCustomerPOResponseDO |
||
|---|---|---|
|
Field |
Type |
Description |
|
PreviousCustomerPurchaseOrderSO |
|
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)
