This API clones a Customer Purchase Order in Draft status. Changes the status of the Customer Purchase Order and Purchase Order Items to Accepted.

API Details

APISignature
acceptOrderwebService static Apttus_Config2.CPQStruct.CloneCustomerPOResponseDO CloneOrder(Apttus_Config2.CPQStruct.CloneCustomerPORequestDO)
Parameters
NameTypeRequired?Description
requestApttus_Config2.CPQStruct.CloneCustomerPORequestDOYesThe request data object.



Request Data Object - 

Apttus_Config2.CPQStruct.CloneCustomerPORequestDO

FieldTypeRequired?Description
CustomerPOIdIDYes

Unique identifier of Customer Purchase OrderObject to be cloned.

API Response

Response Data Object - CPQStruct.AcceptCustomerPOResponseDO
FieldTypeDescription
CloneCustomerPurchaseOrderSO

Apttus_Config2__CustomerPurchaseOrder__c 

The customer purchase orders object.
ClonePurcahseOrderItems

List<Apttus_Config2__CustomerPOItem__c>

List of purchase order line items.

Code Sample

The following enables you to clone an order for a valid customer purchase order with an Order ID.

Apttus_Config2.CPQStruct.CloneCustomerPORequestDO request = new Apttus_Config2.CPQStruct.CloneCustomerPORequestDO();
        request.CustomerPOId = originalOrderId;

        // create the clone response
        Apttus_Config2.CPQStruct.CloneCustomerPOResponseDO response = new Apttus_Config2.CPQStruct.CloneCustomerPOResponseDO();
XML