---
title: Set up order cancellation
slug: configured-commerce/docs/set-up-order-cancellation
docTags: 
createdAt: 2026-08-13T10:46:32.000Z
---

Optimizely Configured Commerce lets users cancel orders through the Admin Console or website and send that information to the ERP through an integration job. If an order is canceled without a Cancel Order integration job, Configured Commerce shows that the order was canceled. However, you must build the integration job to send the order cancellation to the ERP.

## Create and map the order statuses

1. Go to **Admin Console** > **Order Status Mapping.**
2. Create the mapping and select the option to **Allow Cancellation**. See [Order Status Mapping](docId\:JzE73XWC8fpAWE5o2ki72) for more details.

   ![AllowCancellation.png](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/2by-urIs5jYiRDebe1a_3-20260720-144701.png)
3. Click **Save**.

## Identify the cancellable order statuses

1. Go to **Admin Console** > **Administration** > **Settings.**
2. Search for **Cancellable Order Statuses**.

   ![CancellableOrderStatuses.png](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/NfEg808KQ4yUXnL4T9tI1-20260720-144701.png)
3. Enter the cancellable order statuses you mapped on **Order Status Mapping**. Click **Add (+)** to add additional statuses.
4. Click **Save**.

## Create the cancel order integration job

You must create a custom-coded integration processor to call the API to update the ERP. The integration processor is then referenced in the integration job.

1. Go to **Admin Console** > **Administration** > **Job Definitions**.
2. Click **Add Job Definition**.
3. Populate the following fields in **Details**:

   ![OrderCancel-2.png](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/b3VPe3S25Bjga22m-RdkK-20260720-144701.png)

   - **Job Name** – OrderCancel
   - **Job Type** – Execution
   - **Connection** – ERP Connection
   - **Preprocessor** – None
   - **Integration Processor** – None
   - **Post Processor** – None
   - **Standard Job Name** – Order Cancel
4. Click **Save**.
5. Go to **Steps** and click **+ Job Definition Step** to create a new job step.
6. Populate the following fields:
   - **Sequence** – 1
   - **Step Name** – Order Cancel Step
7. Click **Save**.
8. Go to **Parameters** and click **+ Job Definition Step Parameter**.
9. Populate the following fields:
   - **Name** – ERP Order Number or Web Order Number. This depends on if you want to use the ERP order number or the Configured Commerce web order number.
   - **Value Type** – String
   - **Default Value** – Leave blank
   - **Prompt** – ERP Order Number, Web Order Number, or leave blank

:::Paragraph{indent="1"}
Repeat these steps if you need to populate both the ERP order number and web order number.
:::

10. Click **Save**.
