---
title: "How do I cancel a transaction?"
slug: "how-do-i-cancel-a-transaction"
updated: 2024-08-20T14:01:20Z
published: 2024-08-20T14:01:20Z
canonical: "support.lusid.com/how-do-i-cancel-a-transaction"
---

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

# How do I cancel a transaction?

Providing you have suitable [access control permissions](/v1/docs/identity-management-and-access-control-iam), you can cancel a transaction in a particular transaction portfolio to ensure LUSID no longer includes it when [generating holdings](/v1/docs/understanding-how-lusid-uses-transaction-types-to-generate-holdings) for that portfolio.

A cancelled transaction remains stored in LUSID with a `transactionStatus` of `Cancelled`. You can:

- See the transaction when you call the [GetTransactions](https://www.lusid.com/docs/api#operation/GetTransactions) or [BuildTransactions](https://www.lusid.com/docs/api#operation/CancelTransactions) APIs with `showCancelledTransactions` set to `True`.
- Roll back the `asAt` timeline when you call the [GetHoldings](https://www.lusid.com/docs/api#operation/GetHoldings) API to re-imagine the impact of the transaction on holdings. [More on bitemporal data](/v1/docs/what-is-the-asat-timestamp).

However, you cannot reactivate or 'uncancel' the transaction.

The following methods are available:

- Method 1: [Using the LUSID REST API](/v1/docs/how-do-i-cancel-a-transaction#using-the-lusid-rest-api)
- Method 2: [Using the LUSID web app](/v1/docs/how-do-i-cancel-a-transaction#using-the-lusid-web-app)
- Method 3: [Using Luminesce](/v1/docs/lusidportfoliotxnwriter)

## Using the LUSID REST API

1. [Obtain an API access token](/v1/docs/how-do-i-obtain-and-use-a-short-lived-api-access-token-from-okta).
2. Call the [CancelTransactions](https://www.lusid.com/docs/api#operation/CancelTransactions) API, passing in your API token and specifying in the URL:
  - The `scope` and `code` of the parent portfolio.
  - One or more `transactionIds` to cancel. Each is a unique identifier originally specified when a transaction was [upserted into LUSID](/v1/docs/how-do-i-create-or-update-a-transaction#using-the-lusid-rest-api).

For example:

```json
curl -X DELETE 'https://<your-domain>.lusid.com/api/api/transactionportfolios/Ibor/Global-Equity/transactions?transactionIds=Txn-001&transactionIds=Txn-00003'
  -H 'Authorization: Bearer <your-API-access-token>'
```

## Using the LUSID web app

1. [Sign in to the LUSID web app](https://www.lusid.com/app/home).
2. Navigate to **Dashboard > Transactions**.
3. Select a transaction to cancel (this must be done one at a time) and choose **Delete** from the end row menu: ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/d2a794b3-836a-40d2-b2a7-24911f621646.png)
