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

Accepting Customer Purchase Orders

This API accepts 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

webService static Apttus_Config2.CPQStruct.AcceptCustomerPOResponseDO acceptOrder(Apttus_Config2.CPQStruct.AcceptCustomerPORequestDO)

Parameters

Name

Type

Description

request

Apttus_Config2.CPQStruct.AcceptCustomerPORequestDO

The request data object.

Request Data Object -

Apttus_Config2.CPQStruct.AcceptCustomerPORequestDO

Field

Type

Required?

Description

CustomerPOId

ID

Yes

The Id of the Order to be finalized.

API Response

Response Data Object - CPQStruct.AcceptCustomerPOResponseDO

Field

Type

Description

CustomerPurchaseOrderSO

Standard Object

The response data object.

Response Data Object - CustomerPurchaseOrderSO

Field

Type

Description

IsSuccess

boolean

Specifies whether the order is finalized successfully.

Code Sample

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

// accept the order
CPQStruct.AcceptCustomerPORequestDO request = new CPQStruct.AcceptCustomerPORequestDO();
request.CustomerPOId = customerPO.Id;

CPQStruct.AcceptCustomerPOResponseDO result = CustomerPOWebService.acceptOrder(request);
system.debug(result.CustomerPurchaseOrderSO)