> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ach.netevia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel a Transaction

> A transaction can only be canceled while in the CAPTURE_PENDING state. You can no longer cancel a transaction after the ACH capture process has begun.

### Endpoint

DELETE **/3p/api/v1/transaction/\{uuid}**

### Response Object

<CodeGroup>
  ```json Success (204) theme={"system"}
  ```
</CodeGroup>

### Errors & Warnings

<CodeGroup>
  ```json 403 (Forbidden) theme={"system"}
  {
      "status": false,
      "message": "Your transaction cannot be cancelled now because it has already been cancelled.",
      "data": null,
      "errors": null,
      "error_code": null
  }

  -----------------------------------------------------

  {
      "status": false,
      "message": "Your transaction cannot be cancelled now because it has already been failed.",
      "data": null,
      "errors": null,
      "error_code": null
  }
  ```

  ```json 404 (Not Found) theme={"system"}
  {
      "status": false,
      "message": "Transaction not found.",
      "data": null,
      "errors": null,
      "error_code": null
  }
  ```
</CodeGroup>
