Adding a Miscellaneous Item to the Cart
This API creates and assigns a miscellaneous item to the cart.
| API | Signature | 
|---|---|
| addMiscItem | webService static Apttus_CPQApi.CPQ.AddMiscItemResponseDO addMiscItem(Apttus_CPQApi.CPQ.AddMiscItemRequestDO request) | 
| Parameters | ||
|---|---|---|
| Name | Type | Description | 
| request | Apttus_CPQApi.CPQ.AddMiscItemRequestDO | This is the request data object. | 
| Request Data Object - Apttus_CPQApi.CPQ.AddMiscItemRequestDO | ||
|---|---|---|
| Field | Type | Description | 
| AllocateGroupAdjustment | Boolean | Indicates whether group adjustment should be allocated. | 
| AllowRemoval | Boolean | Indicates whether removing the miscellaneous item is allowed. | 
| Amount | Decimal  | The Base Price for the miscellaneous item. | 
| CartId | Id | The id of the cart where you want to add the miscellaneous item. | 
| ChargeType | String | The charge type of the miscellaneous item. | 
| Description | String | Description of the miscellaneous item. | 
| Response Data Object - Apttus_CPQApi.CPQ.AddMiscItemResponseDO | ||
|---|---|---|
| Field | Type | Description | 
| MiscItem | Apttus_Config2__LineItem__c | The miscellaneous item that is created. | 
Code Sample
The sample code below enables you to add a miscellaneous item to a cart by passing proposal, charge type, description, and base amount.

