--- title: "Modelling a security write-off (WOFF)" slug: "modelling-a-security-write-off-woff" updated: 2026-11-25T08:55:12Z published: 2026-11-25T08:55:12Z canonical: "support.lusid.com/modelling-a-security-write-off-woff" --- > ## 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. # Modelling a security write-off (WOFF) You can model a security write-off, where an issuer, lender or regulator declares that a security has been written off and holders receive nothing for it, as a corporate action of type `SecurityWriteOffEvent` in LUSID. [See all supported corporate actions](/v1/docs/understanding-dedicated-corporate-action-events). Note the following: - `SecurityWriteOffEvent` is valid for instruments of type `Bond`, `ComplexBond`, `Equity` and `SimpleInstrument`. - A write-off removes the whole holding at zero proceeds. No cash moves, no new security is received, and the holding's remaining cost is realised as a loss. - Unlike a [worthless security](/v1/docs/modelling-a-worthless-security-wrth), a write-off can be voluntary, so that you choose whether to recognise it, for example when you judge a distressed bond uncollectible before any formal declaration. On a voluntary write-off, the holding is written off only if you choose to; if you do nothing, the holding is unchanged. - If holders receive any cash, for example a partial recovery, do not use `SecurityWriteOffEvent`. Model a [bankruptcy](/v1/docs/modelling-a-bankruptcy-brup) or a liquidation payment instead. - The entitlement date is the `recordDate` specified when you load `SecurityWriteOffEvent`. - Units are removed based on the number of *settled* units held on the entitlement date. Units bought before the entitlement date that settle after it stay in the holding at their cost, so you must remove them yourself. - The transaction date of the automatically-generated output transaction is `recordDate`, and the settlement date is `paymentDate`. From the record date, the holding has no units (it is unsettled until the payment date). - LUSID generates one transaction per holding, which removes every tax lot, whatever the portfolio's [accounting method](/v1/docs/what-are-the-supported-tax-lot-accounting-methods-in-lusid). - For a short position, LUSID closes the short at zero cost, so the proceeds of the original sale are realised as a gain. - For a bond, LUSID does not generate an accrued interest transaction. Interest accrued since the last coupon is no longer reported once the holding is removed, and is not booked as a loss. ## Loading `SecurityWriteOffEvent` You must load `SecurityWriteOffEvent` into a corporate action source registered with one or more portfolios. The event then impacts every registered portfolio with a holding in the underlying instrument. [See how to do this](/v1/docs/how-do-i-upload-corporate-actions-to-a-corporate-action-source). For more information on fields, see the [SecurityWriteOffEvent](https://www.lusid.com/docs/api/lusid/schemas/SecurityWriteOffEvent/) schema. Where set, the following date validation rules apply: `announcementDate ≤ recordDate ≤ paymentDate` > **Note**: `recordDate` and `paymentDate` are required, and `announcementDate` is optional. The only election type is `SubscribeElection`, which means "recognise the write-off". Choosing *any* `SubscribeElection` writes off the holding, whatever its `electionKey`, so load at most one. You must choose **one** of the following participation types: | Participation type | Election(s) | Election choices | Further action required? | | --- | --- | --- | --- | | `Mandatory` | N/A | N/A | ❌ No. The write-off always occurs automatically. | | `Voluntary` | One `SubscribeElection`, for example keyed `WRITEOFF` | Set the following on the election: ❌ **Is default** ✅ **Is chosen** to write off every holding, or ❌ to leave the choice to each portfolio | ❓ Optional. If the election is not chosen, nothing happens unless you instruct to write off per portfolio (see below). | LUSID rejects the event if you load it as `MandatoryWithChoices`, if a `Mandatory` event has a `SubscribeElection`, or if a `Voluntary` event has a `SubscribeElection` that is **Is default** or more than one that is **Is chosen**. ## Instructing to write off per portfolio If you load `SecurityWriteOffEvent` as `Voluntary` with an election that is not chosen, you can instruct to write off holding(s) in a particular portfolio. If you do not, the holding is unchanged. To do this, load an *event instruction* into a portfolio, with the `electionKey` of the `SubscribeElection`. Note this is not an event, and you do not load it into a corporate action source, which means you can instruct differently in different portfolios. [See how to do this](/v1/docs/loading-an-event-instruction-to-override-an-instrument-event-for-a-particular-portfolio). ## Configuring the economic impact You must create a `Worthless` transaction type to handle the automatically-generated output transaction. This is not provided for you. [See our recommendation](/v1/docs/recommended-transaction-types-for-corporate-action-events#worthlessevent). You can give a transaction type any economic impact you like. Our recommendation: - Removes the units and cost of the holding. - Does not create or change a cash holding. - Reports the holding's cost as a realised loss using the `ProfitAndLoss/Realised/Market` [metric](/v1/docs/what-is-a-metric). ## Reference examples ### A mandatory write-off A regulator orders Acme Bank's AT1 bonds to be written down in full. The write-off is announced on 2 November 2026, with a record date of 13 November 2026 and a payment date of 16 November 2026. ```json [  {    "instrumentEventId": "WOFF-ACMEBANK-AT1-2026",    "instrumentIdentifiers": {      "Instrument/default/ClientInternal": "ACMEBANK-AT1"    },    "description": "Security write-off - Acme Bank AT1 bonds written down in full",    "participationType": "Mandatory",    "instrumentEvent": {      "instrumentEventType": "SecurityWriteOffEvent",      "announcementDate": "2026-11-02T00:00:00.0000000+00:00",      "recordDate": "2026-11-13T00:00:00.0000000+00:00",      "paymentDate": "2026-11-16T00:00:00.0000000+00:00"    }  } ] ``` A portfolio holds 500,000 settled units (face value) of the AT1 bonds at a cost of GBP 225,000. LUSID generates one `Worthless` transaction for 500,000 units, dated 13 November 2026 and settling on 16 November 2026, with a total consideration of zero. The portfolio then holds none of the bonds, no cash moves, and `ProfitAndLoss/Realised/Market` falls by GBP 225,000. ### A voluntary write-off Acme Corp is in financial distress but has not filed for bankruptcy. Some portfolio managers judge its shares uncollectible and want to write them off; others do not. You load a voluntary write-off with an election that is not chosen: ```json [  {    "instrumentEventId": "WOFF-ACMECORP-2026",    "instrumentIdentifiers": {      "Instrument/default/ClientInternal": "ACMECORP-EQ"    },    "description": "Security write-off - Acme Corp shares, recognise per portfolio",    "participationType": "Voluntary",    "instrumentEvent": {      "instrumentEventType": "SecurityWriteOffEvent",      "recordDate": "2026-11-13T00:00:00.0000000+00:00",      "paymentDate": "2026-11-16T00:00:00.0000000+00:00",      "subscribeElections": [        { "electionKey": "WRITEOFF", "isChosen": false, "isDefault": false }      ]    }  } ] ``` Two portfolios each hold 50,000 settled Acme Corp shares at a cost of GBP 25,000. You load an `ElectForPortfolio` event instruction with an `electionKey` of `WRITEOFF` into the first portfolio only. In this portfolio, LUSID generates one `Worthless` transaction for 50,000 units at zero, and `ProfitAndLoss/Realised/Market` falls by GBP 25,000. In the second portfolio, LUSID generates nothing, and the holding is unchanged.