Cloning Customer Purchase Orders
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
|
API |
Signature |
|---|---|
|
acceptOrder |
|
|
Parameters |
|||
|---|---|---|---|
|
Name |
Type |
Required? |
Description |
|
request |
|
Yes |
The request data object. |
| Request Data Object - Apttus_Config2.CPQStruct.CloneCustomerPORequestDO |
|||
|---|---|---|---|
|
Field |
Type |
Required? |
Description |
|
CustomerPOId |
|
Yes |
Unique identifier of Customer Purchase OrderObject to be cloned. |
API Response
|
Response Data Object - CPQStruct.AcceptCustomerPOResponseDO |
||
|---|---|---|
|
Field |
Type |
Description |
|
CloneCustomerPurchaseOrderSO |
|
The customer purchase orders object. |
|
ClonePurcahseOrderItems |
|
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();
