> For the complete documentation index, see [llms.txt](https://paas.docs.machnetinc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://paas.docs.machnetinc.com/api-references/transaction/cancel-transaction.md).

# Cancel Transaction

ACH transactions that have not been submitted for processing can be canceled using this API. You will receive appropriate error messages if a transaction cannot be canceled.

**`DELETE /users/{{user_id}}/transactions/{{id}}`**

{% tabs %}
{% tab title="Request sample" %}

```
curl --location --request DELETE '{{url}}/users/{{user_id}}/transactions/{{id}}' \
--header 'X-Client-Id: 457dde89-76d4-41ac-97ee-f4a4321591d8' \
--header 'X-Client-Secret: c562435e-cb80-4df1-aa11-205a2df56b6a' \
--header 'Content-Type: application/json'
```

{% endtab %}

{% tab title="Response sample" %}

```
Status code 200 OK
```

{% endtab %}
{% endtabs %}
