---
title: "Mark for Erasure Model"
slug: "mark-for-erasure-model"
updated: 2025-06-27T20:13:44Z
published: 2025-06-27T20:13:44Z
canonical: "docs.onespan.com/mark-for-erasure-model"
---

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

# Mark for Erasure Model

The JSON model of the mark-for-erasure API endpoint contains the data structure that is required to mark one or more transactions for deletion.

[Request properties (mark for erasure)](/docs/mark-for-erasure-model#Tab_mark-for-erasure_properties) lists the request properties in OneSpan Identity Verification.

- Path: .../properties/transaction/properties/mark_for_erasure_request

<editor360-custom-block data-preprocessing="true" data-sanitizationtags="a"><div data-type="table-content"> <table width="100%" class=" fr-alternate-rows editor360-table" borderstyle="Solid"> <colgroup style="display:none;"> <col style="width:180px;"> <col style="width:149px;"> <col style="width:250px;"> </colgroup> <tbody> <tr> <td colspan="3" rowspan="1" colwidth="180,149" style="vertical-align:middle;text-align:left;"> <p data-block-id="49402d6f-b767-42d8-a803-f03db978fa4f"><a name="Tab_mark-for-erasure_properties" display="false"></a><strong>Request properties (mark for erasure)</strong></p> </td> </tr> <tr> <th colspan="1" rowspan="1" colwidth="180" class="TableStyle-Global-HeadE-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="aa4671f0-a651-46c3-9787-43e3ca5aedd4">Property</p> </th> <th colspan="1" rowspan="1" colwidth="149" class="TableStyle-Global-HeadE-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="8214a825-6e30-4dba-abb5-b42db3fd450c">Type</p> </th> <th colspan="1" rowspan="1" class="TableStyle-Global-HeadD-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="09e213d5-4604-43a3-8b61-da13c0706321">Description</p> </th> </tr> <tr> <td colspan="1" rowspan="1" colwidth="180" style="vertical-align:middle;text-align:left;"> <p data-block-id="13c2d13d-b484-4fd2-b1de-e02067b43fa0"><span class="vdsCodeBasic" type="spanMark">grace_period</span></p> </td> <td colspan="1" rowspan="1" colwidth="149" style="vertical-align:middle;text-align:left;"> <p data-block-id="3529b1ba-57d0-4552-af91-cecf841f75d7">Integer</p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="150c7330-f2c8-4185-8d5b-1c8989c28061">The period of time during which users can revert the transaction erasure request. After the grace period has elapsed, the transaction is deleted.</p> <p data-block-id="e35d610d-3d37-4f54-92a2-b3c1b5192c8c">Possible values: greater than or equal to <span class="vdsOptionValue" type="spanMark">0</span>.</p> <p data-block-id="dc08117a-3804-4563-91e4-4b8599c929ad" class="vdsInlineNote">If <span class="vdsCodeBasic" type="spanMark">grace_period</span> is <span class="vdsOptionValue" type="spanMark">0</span>, the transaction is not available for recovery (see <a href="/v1/docs/unmark-transaction-for-erasure" target="_self" translate="no" rel="noopener">Unmark transaction for erasure</a>) and is deleted on the day it is marked for erasure.</p> </td> </tr> <tr> <td colspan="1" rowspan="1" colwidth="180" style="vertical-align:middle;text-align:left;"> <p data-block-id="60e64a57-189a-45f4-ab58-82e27a3efff3"><span class="vdsCodeBasic" type="spanMark">transaction_ids</span></p> </td> <td colspan="1" rowspan="1" colwidth="149" style="vertical-align:middle;text-align:left;"> <p data-block-id="398d7e46-6a81-4e9a-ad48-e64a5d27324b">Array</p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="21525390-08fd-4ba6-adec-a46883acc060">List of transaction UUIDs.</p> <ul data-block-id="3872e21d-cb7a-4c30-ac01-7139200a859d"> <li data-block-id="f2029dda-52cf-475a-9e65-75fb6c1727d6"> <p data-block-id="b83f0820-e729-4562-adb7-a95813c77e69">Maximum number of items: 500</p> </li> <li data-block-id="3bd8ecb6-5808-4941-8aac-a64d8af7f4d3"> <p data-block-id="5e88ee13-c967-4207-9256-cf618527e7e5">Minimum number of items: 1</p> </li> </ul> <p data-block-id="226763e7-57b3-45df-ac17-798547f1f14a">Items:</p> <ul data-block-id="6dd525e1-d608-445e-a38d-6968f4613312"> <li data-block-id="72a86cc1-ffba-4fde-abdd-3fb7dbaf66f2"> <p data-block-id="b2b914aa-f404-41b3-98ec-bba584f5a747">Type: string</p> </li> </ul> </td> </tr> </tbody> </table></div></editor360-custom-block>

[Response properties (mark for erasure)](/docs/mark-for-erasure-model#Tab_mark-for-erasure_ResponseProperties) lists the response properties in OneSpan Identity Verification.

- Path: .../properties/transaction/properties/transaction_mark_for_erasure_response

<editor360-custom-block data-preprocessing="true" data-sanitizationtags="a"><div data-type="table-content"> <table width="100%" class=" fr-alternate-rows editor360-table" borderstyle="Solid"> <colgroup style="display:none;"> <col style="width:250px;"> <col style="width:250px;"> <col style="width:250px;"> </colgroup> <tbody> <tr> <td colspan="3" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="d447d3eb-b938-4531-a8de-2caccafd7085"><a name="Tab_mark-for-erasure_ResponseProperties" display="false"></a><strong>Response properties (mark for erasure)</strong></p> </td> </tr> <tr> <th colspan="1" rowspan="1" class="TableStyle-Global-HeadE-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="d337a029-7109-41cb-ab6d-a66a29c325c6">Property</p> </th> <th colspan="1" rowspan="1" class="TableStyle-Global-HeadE-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="248515cc-a050-4eaf-9ee1-0e74b1bf734c">Type</p> </th> <th colspan="1" rowspan="1" class="TableStyle-Global-HeadD-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="f8dc2c2b-71e4-44d7-b210-963e9b4092b9">Description</p> </th> </tr> <tr> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="7ccdb7ae-4953-4690-8ee4-40c60a6ae221"><span class="vdsCodeBasic" type="spanMark">message</span></p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="3b5202f7-8caf-404f-a548-784112b43fcb">String</p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="1c5e62a1-92c4-44ac-84ac-55e91886f358">The message for the mark-for-erasure response.</p> </td> </tr> <tr> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="13b2e882-c089-4077-9725-43ef12b1c89e"><span class="vdsCodeBasic" type="spanMark">transactions</span></p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="dedc055d-5353-40f2-8c5d-2493c3a63d46">Array</p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="0f39df27-d293-4b9d-8496-0bc7e1a6a475">The information for all transactions that are part of the mark-for-erasure response.</p> <p data-block-id="ec1fd53d-a7a2-4104-a412-c64f037299f8">Reference to the schema: <span class="vdsCodeBasic" type="spanMark">"transaction.schema.3.0.markforerasure.response.details.json"</span></p> <p data-block-id="038a2777-4aad-44ae-9e11-5ae386a66312">For the list of <span class="vdsCodeBasic" type="spanMark">transactions</span> properties, see <a href="/docs/mark-for-erasure-model#Tab_mark-for-erasure_ResponsePropertiesDetails" class="MCXref_0" rel="noopener">transactions properties</a>.</p> </td> </tr> </tbody> </table></div></editor360-custom-block><editor360-custom-block data-preprocessing="true" data-sanitizationtags="a"><div data-type="table-content"> <table width="100%" class=" fr-alternate-rows editor360-table" borderstyle="Solid"> <colgroup style="display:none;"> <col style="width:250px;"> <col style="width:250px;"> <col style="width:250px;"> </colgroup> <tbody> <tr> <td colspan="3" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="9bec003b-f198-4acb-9c36-3808e30c6b12"><a name="Tab_mark-for-erasure_ResponsePropertiesDetails" display="false"></a><span class="vdsCodeBasic" type="spanMark"><strong>transactions</strong></span><strong> properties</strong></p> </td> </tr> <tr> <th colspan="1" rowspan="1" class="TableStyle-Global-HeadE-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="25f2fb03-4d85-417b-af26-6663ead8531c">Property</p> </th> <th colspan="1" rowspan="1" class="TableStyle-Global-HeadE-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="60eace9f-d73f-4aa9-a664-0a87cf121314">Type</p> </th> <th colspan="1" rowspan="1" class="TableStyle-Global-HeadD-Column-MainHeader" style="vertical-align:middle;text-align:left;"> <p data-block-id="990f47a9-0ea0-4e0a-9b2f-d1c9bf93ce6a">Description</p> </th> </tr> <tr> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="b8be1866-ab06-44bb-95b4-85caf185b86c"><span class="vdsCodeBasic" type="spanMark">marking_event</span></p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="d73b4f3f-a87b-4d2c-a651-aafb86ec798b">String</p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="db7b688a-fdda-4b7b-ae7f-77aab83bcac7">The event that is related to the transaction that was marked for erasure.</p> </td> </tr> <tr> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="786c9c5c-4f76-425a-9f62-55b58f4ea9ed"><span class="vdsCodeBasic" type="spanMark">message</span></p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="c57ea99a-5344-45ff-b6b2-ed673d3e15ae">String</p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="d19f4191-7efc-4c4f-a761-1f5daf7bbbec">The message for the transaction that was marked for erasure.</p> </td> </tr> <tr> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="c35ff141-1367-4a0f-bc6f-cb865769fd08"><span class="vdsCodeBasic" type="spanMark">transaction_id</span></p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="7def1cf2-7637-4b2d-9046-2b60199f4644">String</p> </td> <td colspan="1" rowspan="1" style="vertical-align:middle;text-align:left;"> <p data-block-id="038fb9ce-77ee-4f82-bc62-de071f096aae">The transaction identifier.</p> </td> </tr> </tbody> </table></div></editor360-custom-block>

## Example mark-for-erasure request

1. {
2. "grace_period": 25,
3. "transaction_ids": [
4. "6cca2f64-2781-49fc-85de-f80361581968",
5. "6cca2f64-2781-49fc-85de-f80361581969",
6. "6cca2f64-2781-49fc-85de-f80361581970"
7. ]
8. }

## Example mark-for-erasure response

1. {
2. message: "Some of the transactions could be marked for erasure other couldn't."
3. 
4. transactions: [
5. 
6. {
7. transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
8. marking_event: "Transaction Erase Request - Accepted"
9. message: "The transaction has been accepted to be marked for erasure, there could be a short period where the transaction is recoverable, it depends on the data retention policy (grace period)."
10. },
11. 
12. {
13. transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
14. marking_event: "Transaction Erase Request - ID field error"
15. message: "This transaction doesn't exist, therefore cannot be marked for erasure."
16. },
17. 
18. {
19. transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
20. marking_event: "Transaction Erase Request - Transaction Not Found"
21. message: "This transaction doesn't exist, therefore cannot be marked for erasure."
22. },
23. 
24. {
25. transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
26. marking_event: "Transaction Erase Request - Transaction currently active"
27. message: "Failed to mark for erasure, the transaction was active (New or In Post Processing), if it needs to be mark for erasure, it must first be cancelled."
28. },
29. 
30. {
31. transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
32. marking_event: "Transaction Erase Request - Fail" # Note that if this generic use case doesn't exist, don't create it.
33. message: "Failed to mark for erasure. {descriptive_error_message}"
34. message: "Failed to mark for erasure, the transaction was locked, please try again later."
35. }
36. 
37. ]
38. }
