---
title: "Submit a Subject Erasure Request."
method: POST
path: "/requestSubjectErasure"
tags: ["General"]
---

# Submit a Subject Erasure Request.

`POST /requestSubjectErasure`

Sends the PSP reference containing the shopper data that should be deleted.

## Request body

- SubjectErasureByPspReferenceRequest
  - `forceErasure` boolean — Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction.
  - `merchantAccount` string — Your merchant account
  - `pspReference` string — The PSP reference of the payment. We will delete all shopper-related data for this payment.

## Response `200`

OK - the request has succeeded.

- SubjectErasureResponse
  - `result` 'ACTIVE_RECURRING_TOKEN_EXISTS' | 'ALREADY_PROCESSED' | 'PAYMENT_NOT_FOUND' | 'SUCCESS' — The result of this operation.

## Other responses

- `400` — Bad Request - a problem reading or understanding the request.
- `401` — Unauthorized - authentication required.
- `403` — Forbidden - insufficient permissions to process the request.
- `422` — Unprocessable Entity - a request validation error.
- `500` — Internal Server Error - the server could not process the request.

## Changes

- **2023-03-15** (v1) `270a07bcd37f` — 7 breaking
  - the request's body type/format changed from ``/`` to `object`/``
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - the response's body type/format changed from ``/`` to `object`/`` for status `400`
  - the response's body type/format changed from ``/`` to `object`/`` for status `401`
  - …3 more

[Change history](https://skmtc.dev/adyen/apis/adyen-data-protection-api/changes/requestSubjectErasure/post.md)

---

[API](https://skmtc.dev/adyen/apis/adyen-data-protection-api.md) · [All operations](https://skmtc.dev/adyen/apis/adyen-data-protection-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adyen/adyen-data-protection-api/revisions/7b7145f757ef/schema)
