---
schema_version: "1"
id: 866869b81fcc31d241dbe963c9b10df83a4938d8ea291e124c8ca5e047648542
title: Discard Supplemental Order
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-discard-supplemental-order.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-discard-supplemental-order.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cb60faac422f89578304119534ff7abab03ca223996f1a8cccd9016137259340
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Discard Supplemental Order

For CME Winter '20 and later releases, the discardOrder API is invoked on a supplemental order if the supplemental order is not submitted and the user wants to discard a supplemental order and proceed with the original order’s fulfillment.

## Apex Method

Use this method with the supplemental order's ID as input (supplementalOrdId) to discard a supplemental order request.

```nolang
public static void unfreezeOrder(Id supplementalOrdId)
{
    final String methodName = 'discardOrder';
    Map<String, Object> inputMap = new Map<String, Object>
    {
        'cartId' => supplementalOrdId,
        'methodName' => methodName
    };
    Map<String, Object> outputMap = new Map<String, Object>();
    Map<String, Object> optionsMap = new Map<String, Object>();
    vlocity_cmt.CpqAppHandler handler = new vlocity_cmt.CpqAppHandler();
    handler.invokeMethod(methodName, inputMap, outputMap, optionsMap);
    // traverse the result that was returned, to find the supplemental order id.
    vlocity_cmt.JSONResult result = (vlocity_cmt.JSONResult) outputMap.get('result');
}
```

**See Also**

- [Create Supplemental Order](https://developer.salesforce.com/docs/industries/cme/guide/comms-create-supplemental-order.md)
- [Unfreeze Order](https://developer.salesforce.com/docs/industries/cme/guide/comms-unfreeze-order.md)
