---
updatedAt: 2025-09-09T20:33:13.000Z
agentTools:
  projectIndex: https://docs.qorcommerce.io/llms.txt
---

# Cancel / Void

Cancel / Void an ACH transaction

You can cancel / void an ACH Credit or Debit prior to the ACH batch processing cut off time with an ACH Void.

### <span style={{ color: "#5375bd" }}><b>Parameters</b></span>

The following parameters are available to process a ACH cancel / void.

<Table align={["left","left","center"]}>
  <thead>
    <tr>
      <th>
        <span style={{ color: "#5375bd" }}><b>parameter</b></span>
      </th>
      <th>
        <span style={{ color: "#5375bd" }}><b>description</b></span>
      </th>
      <th>
        <span style={{ color: "#5375bd" }}><b>required</b></span>
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        **mid**
      </td>
      <td>
        the Merchant ID (MID) assigned by <span style={{ color: "#5375bd" }}><b>`QorCommerce`</b></span> or your merchant service provider (MSP)
      </td>
      <td>
        Yes
      </td>
    </tr>
    <tr>
      <td>
        **reference\_id**
      </td>
      <td>
        A reference id that will be echo'd back in the message response.
      </td>
      <td>
        No
      </td>
    </tr>
    <tr>
      <td>
        **transaction\_id**
      </td>
      <td>
        the payment gateway unique transaction\_id for the original ACH Credit or Debit
      </td>
      <td>
        Yes
      </td>
    </tr>
  </tbody>
</Table>

#### <span style={{ color: "#5375bd" }}><b>References</b></span>

<ul>
  Links to details on related response codes.
  <li>[Payment Response Codes](https://docs.qorcommerce.io/docs/payment-response-codes)</li>
  <li>[Standard Entry Class (SEC) Codes used for ACH](https://docs.qorcommerce.io/docs/standard-entry-class-sec-codes-used-for-ach)</li>
</ul>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0",
    "title": "QorCommerce Endpoints",
    "description": "API Version 3"
  },
  "paths": {
    "/payment/ach/void": {
      "post": {
        "operationId": "ach-void",
        "summary": "Cancel / Void",
        "tags": [
          "Payments - ACH / Bank Transfers"
        ],
        "description": "Cancel / Void an ACH transaction",
        "parameters": [
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-App-Key"
          },
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-Client-Key"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction_data": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/input-void-ach"
                      }
                    ]
                  }
                },
                "example": {
                  "transaction_data": {
                    "mid": "",
                    "transaction_id": ""
                  }
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction_data": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/input-void-ach"
                      }
                    ]
                  }
                },
                "example": {
                  "transaction_data": {
                    "mid": "",
                    "transaction_id": ""
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "status",
                    "code",
                    "message"
                  ]
                },
                "examples": {
                  "response": {
                    "value": {
                      "status": "OK",
                      "code": "GW00",
                      "message": "The request processed successfully"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.qorcommerce.io/v3"
    }
  ],
  "components": {
    "parameters": {
      "trait_qorHeaderAuthentication_Qor-App-Key": {
        "name": "Qor-App-Key",
        "in": "header",
        "description": "The unique key identifying the app making this request.\n\nNOTE: If testing use **`T6554252567241061980`** for the **`Qor-App-Key`** header key.",
        "required": true,
        "schema": {
          "type": "string",
          "maxLength": 24,
          "default": "T6554252567241061980"
        }
      },
      "trait_qorHeaderAuthentication_Qor-Client-Key": {
        "name": "Qor-Client-Key",
        "in": "header",
        "description": "The Client key represents an authorized **merchant account**  and is assigned by QorCommerce or your merchant service account provider.\n\n**NOTE:**  If testing use `01dffeb784c64d098c8c691ea589eb82 `  for the `Qor-Client-Key` header key.",
        "required": true,
        "schema": {
          "type": "string",
          "default": "01dffeb784c64d098c8c691ea589eb82"
        }
      }
    },
    "schemas": {
      "input-void-ach": {
        "title": "Input - ACH Void",
        "type": "object",
        "properties": {
          "mid": {
            "type": "string",
            "description": "The merchant id (MID) assigned by QorCommerce or your merchant service provider (MSP)."
          },
          "transaction_id": {
            "type": "string",
            "description": "The payment gateway transaction_id of the original ACH Debit or Credit"
          }
        },
        "required": [
          "mid",
          "transaction_id"
        ],
        "example": {
          "mid": "",
          "transaction_id": ""
        }
      }
    }
  },
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "node",
    "ruby",
    "java",
    "javascript",
    "php",
    "python",
    "swift"
  ]
}
```