Providing you have suitable access control permissions, you can cancel a transaction in a particular transaction portfolio to ensure LUSID no longer includes it when generating 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 or BuildTransactions APIs with
showCancelledTransactions
set toTrue
.Roll back the
asAt
timeline when you call the GetHoldings API to re-imagine the impact of the transaction on holdings. More on bitemporal data.
However, you cannot reactivate or 'uncancel' the transaction.
The following methods are available:
Method 1: Using the LUSID REST API
Method 2: Using the LUSID web app
Method 3: Using Luminesce
Using the LUSID REST API
Call the CancelTransactions API, passing in your API token and specifying in the URL:
The
scope
andcode
of the parent portfolio.One or more
transactionIds
to cancel. Each is a unique identifier originally specified when a transaction was upserted into LUSID.
For example:
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
Navigate to Dashboard > Transactions.
Select a transaction to cancel (this must be done one at a time) and choose Delete from the end row menu: