---
schema_version: "1"
id: 04cbab8dd4f705d6471fa2711a5c2c92262dee2985f9570c0f1f81d8344e5c5a
title: Delete Adjustment
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-delete-adjustment.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-delete-adjustment.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ce616f442906501c89d5beae32b547cc830014a0b76220c890ea91eb35eae6d4
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Delete Adjustment

Delete an applied price adjustment for a line item in the cart, such as a discount, mark up, or override.

The <!-- broken link-->PricingElementServiceImplementation supports this API.


```nolang
POST /v2/cpq/carts/{cart_ID}/items/{ID}/pricing/{adjustment_ID}

```

**note:** Prior to the Fall '20 release, the deleteAjustment API included a call to getCartsItems. However, from the Fall '20 release, this API no longer calls getCartsItems. If you call this API directly in custom code, ensure that you add a call to getCartLineItemPrices in your code, after calling the deleteAdjustment API. The response from this API has been updated to include the itempricesupdated action to make a call to the next API.

This API supports the guest user enhancements that Salesforce introduced with the Winter ‘21 release. To encrypt and decrypt data for guest users, use the `UserSecurity` class with this API. See Guest User Technical Details.

For additional information, ​see UserSecurity Class and CPQ and Digital Commerce Changes for Guest Users.


## Remote Method

```nolang
deleteAdjustment
```

## Package

Communication (vlocity_cmt)

## API Parameters and Response Format

For API parameter names and descriptions, see [Cart-Based API Swagger Reference](https://developer.salesforce.com/docs/industries/cme/references/cpq?meta=Summary).


## Resource Information

| Response Format | JSON                                                                                   |
| --------------- | -------------------------------------------------------------------------------------- |
| Resource URL    | /services/apexrest/{namespace}/v2/cpq/carts/{cartId}/items/{id}/pricing/{adjustmentId} |

## Example Request

```nolang
POST
/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000iJIZAA2/items/80246000000iuDbAAI/pricing/a2H46000000hj2ZEAQ
{
   "adjustments": [
      {
         "AdjustmentValue": -10,
         "AdjustmentMethod": "Absolute",
         "DetailType": "ADJUSTMENT",
         "Field": "nv_cmt_dev__OneTimeCharge__c"
      }
   ]
}


```

## Example result

**note:** This example has been truncated.

```nolang
{
   "totalSize": 1,
   "messages": [],
   "records": [
      {
         "messages": [],
         "actions": {
            "addtocart": {
               "rest": {
                  "params": {
                     "items": [
                        {
                           "quantity": 1,
                           "parentId": "80246000000hhNzAAI",
                           "itemId": "01u46000001Z8aCAAS"
                        }
                     ],
                     "cartId": "80146000000h5jmAAA",
                     "price": true,
                     "validate": true,
                     "includeAttachment": false,
                     "pagesize": 20,
                     "lastRecordId": null,
                     "query": null
                  },
                  "method": "POST",
                  "link": "/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000h5jmAAA/items"
               },
               "remote": {
                  "params": {
                     "methodName": "postCartsItems",
                     "items": [
                        {
                           "quantity": 1,
                           "parentId": "80246000000hhNzAAI",
                           "itemId": "01u46000001Z8aCAAS"
                        }
                     ],
                     "cartId": "80146000000h5jmAAA",
                     "price": true,
                     "validate": true,
                     "includeAttachment": false,
                     "pagesize": 20,
                     "lastRecordId": null,
                     "query": null
                  }
               },
               "client": {
                  "params": {}
               }
            },
            "updateitems": {
               "rest": {
                  "params": {
                     "items": [
                     {
                        "itemId": "80246000000hhNzAAI"
                     }
                  ],
                  "filters": null,
                  "fields": null,
                  "cartId": "80146000000h5jmAAA",
                  "price": true,
                  "validate": true,
                  "includeAttachment": false,
                  "pagesize": 20,
                  "lastRecordId": null,
                  "query": null
               },
               "method": "PUT",
               "link": "/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000h5jmAAA/items"
            },
            "remote": {
               "params": {
                  "methodName": "putCartsItems",
                  "items": [
                     {
                        "itemId": "80246000000hhNzAAI"
                     }
                  ],
                  "filters": null,
                  "fields": null,
                  "cartId": "80146000000h5jmAAA",
                  "price": true,
                  "validate": true,
                  "includeAttachment": false,
                  "pagesize": 20,
                  "lastRecordId": null,
                  "query": null
               }
            },
            "client": {
               "params": {}
            }
         },
         "deleteitem": {
            "rest": {
               "params": {},
               "method": "DELETE",
               "link": "/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000h5jmAAA/items/80246000000hhNzAAI?pagesize=20&includeAttachment=false&validate=true&price=true&cartId=80146000000h5jmAAA&id=80246000000hhNzAAI"
            },
            "remote": {
               "params": {
               "methodName": "deleteCartsItems",
               "id": "80246000000hhNzAAI",
               "filters": null,
               "fields": null,
               "cartId": "80146000000h5jmAAA",
               "price": true,
               "validate": true,
               "includeAttachment": false,
               "pagesize": 20,
               "lastRecordId": null,
               "query": null
            }
         },
         "client": {
            "params": {}
         }
      },
      "cloneitem": {
         "rest": {
            "params": {
               "items": [
                  {
                     "itemId": "80246000000hhNzAAI"
                  }
               ],
               "id": "80246000000hhNzAAI",
               "cartId": "80146000000h5jmAAA"
            },
            "method": "POST",
            "link": "/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000h5jmAAA/items/clone"
         },
         "remote": {
            "params": {
               "methodName": "cloneItems",
               "items": [
                  {
                     "itemId": "80246000000hhNzAAI"
                  }
               ],
               "id": "80246000000hhNzAAI",
               "cartId": "80146000000h5jmAAA"
            }
         },
         "client": {
            "params": {}
         }
      },
      "modifyattributes": {
         "rest": {
            "params": {
               "items": [
                  {
                     "itemId": "80246000000hhNzAAI"
                  }
               ],
               "filters": null,
               "id": "80246000000hhNzAAI",
            "cartId": "80146000000h5jmAAA"
         },
         "method": "PUT",
         "link": "/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000h5jmAAA/items/80246000000hhNzAAI/itemAttributes"
      },
      "remote": {
         "params": {
            "methodName": "putItemAttributes",
            "items": [
               {
                  "itemId": "80246000000hhNzAAI"
               }
            ],
            "filters": null,
            "id": "80246000000hhNzAAI",
            "cartId": "80146000000h5jmAAA"
         }
      },
      "client": {
         "params": {}
      }
   },
   "getpromodetails": {
      "rest": {
         "params": {},
         "method": "GET",
         "link": "/services/apexrest/vlocity_cmt/v2/cpq/carts/80146000000h5jmAAA/promotions?cartId=80146000000h5jmAAA&id=80246000000hhNzAAI&promotionIds=a2F46000000kmtNEAQ&subaction=promodetails"
      },
      "remote": {
         "params": {
         "methodName": "getPromotionDetails",
         "subaction": "promodetails",
         "promotionIds": "a2F46000000kmtNEAQ",
         "id": "80246000000hhNzAAI",
         "cartId": "80146000000h5jmAAA"
      }
   },
   "client": {
      "params": {}
   }
   }
},
"displaySequence": -1,
"Id": {
   "value": "80246000000hhNzAAI",
   "previousValue": null,
   "originalValue": null,
   "messages": [],
   "label": "Order Product ID",
   "hidden": false,
   "fieldName": "Id",
   "editable": false,
   "dataType": "ID",
   "actions": {}
},
   "Pricebook2Id": "01s46000003EDDHAA4",
   "Product2Id": "01t46000000Lo2mAAC",
   "ProductCode": "BUNDLE_A",
   "UnitPrice": {
   "value": 0,
   "previousValue": null,
   "originalValue": null,
   "messages": [],
   "label": "Unit Price",
   "hidden": true,
   "fieldName": "UnitPrice",
   "editable": false,
   "dataType": "CURRENCY",
   "actions": {}
},
   "Name": "Bundle A",
   "vlocity_cmt__RecurringPrice__c": 0,
   "IsActive": true,
   "Product2": {
   "attributes": {
   "type": "Product2",
   "url": "/services/data/v39.0/sobjects/Product2/01t46000000Lo2mAAC"
},
   "Id": "01t46000000Lo2mAAC",
   "Description": "Bundle A",
   "Name": "Bundle A",
   "vlocity_cmt__IsConfigurable__c": false,
   "vlocity_cmt__Type__c": "None",
   "vlocity_cmt__SubType__c": "None",
"RecordTypeId": "01246000000hFtZAAU",
   "vlocity_cmt__JSONAttribute__c": null
},
```
