Unmark transaction for erasure
With the Unmark Transaction for Erasure API, marking for erasure can be reverted. Transactions that were marked for erasure before are unmarked and will not be deleted.
Syntax
POST /api/transactions/unmark-for-erasure
Examples
Example request
- POST /api/transactions/unmark-for-erasure
- Authorization: Bearer token
- Content-Type: application/json
- X-Tenant: dealflo
- {
- "transaction_ids": [
- "6cca2f64-2781-49fc-85de-f80361581968",
- "6cca2f64-2781-49fc-85de-f80361581969",
- "6cca2f64-2781-49fc-85de-f80361581970"
- ]
- }'
Example response
- {
- message: "Some of the transactions could be unmarked for erasure other couldn't."
- transactions: [
- {
- transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
- unmarking_event: "Transaction Recovery - Accepted" # TBC Transaction Recovery - Unmarked
- message: "Success unmarked for erasure and won't be deleted until the data retention policy has been reached." # In 1 Use Case
- },
- {
- transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
- unmarking_event: "Transaction Recovery - ID field error"
- message: ""
- },
- {
- transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
- unmarking_event: "Transaction Recovery - Transaction Not Found"
- message: "This transaction doesn't exist, therefore cannot be marked for erasure."
- },
- {
- transaction_id: "xxxx-xxxxxx-xxxxxxx-xxxxxx",
- unmarking_event: "Transaction Recovery - Fail"
- message: "Failed to unmark for erasure, the transaction was not marked for erasure."
- }
- ]
- }
Headers
Request headers
The following headers are included in the request:
- Authorization: The OAuth/JWT token to authenticate.
- Content-Type: application/json
- X-Tenant: The tenant ID (optional).
Status codes
Status codes lists the status codes.