Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

Show Page Sections

Amending Customer Purchase Orders

This API modify or amend a Customer Purchase Orders without changing the value of the order line items (Composite API).

API Details

API

Signature

amendCustomerPO

webService static Apttus_Config2.CPQStruct.AmendCustomerPOResponseDOamendCustomerPO(Apttus_Config2.CPQStruct.AmendCustomerPORequestDO)

Parameters

Name

Type

Description

request

Apttus_Config2.CPQStruct.AmendCustomerPORequestDO

The request data object.

Request Data Object - Apttus_Config2.CPQStruct.AmendCustomerPORequestDO

Field

Type

Required?

Description

CustomerPOId

ID

Yes

Reference to the order. Order Id can be any one of the following:

  • Order in "Accept, Partially Processed" status that requires amendment
  • Order in "In Amendment" status for which additional line item changes are required

CustomerPOItems

List<CustomerPOItem__C>

No

CPO Items to be amended

API Response

Response Data Object - CPQStruct.AmendCustomerPOResponseDO

Field

Type

Description

AmendCustomerPOSO

Standard Data Object

The fields of the AmendOrder Object

AmendedCustomerPOItems

List

List of amended order items

Code Sample

The following sample enables you to amend an order for a valid order with an Order Id.

// create the amend request CPQStruct.AmendCustomerPORequestDO request = new CPQStruct.AmendCustomerPORequestDO(); 
request.customerPOId = customerPO.ID;  
request.CustomerPOItems = CustomerPOItems; 
CPQStruct.AmendCustomerPOResponseDO result = CustomerPOWebService.amendCustomerPO(request);
system.debug(result.AmendCustomerPOSO); 
system.debug(result.AmendedCustomerPOItems);