{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ometria/json-schema/ometria-data-deletion-submission-schema.json",
  "title": "DataDeletionSubmission",
  "description": "GDPR related data anonymisation request submission. Exactly one identifier must be provided to identify the individual: `email_address`, `customer_id`, `phone_number`, or an `identifier` object referencing any identifier defined in your account's identity resolution configuration (e.g. `loyalty_id`).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ometria-gdpr-anonymisation-requests-api-openapi.yml#/components/schemas/DataDeletionSubmission",
  "type": "object",
  "properties": {
    "email_address": {
      "type": "string",
      "description": "Email address of individual to be anonymised"
    },
    "customer_id": {
      "type": "string",
      "description": "Customer ID of individual to be anonymised"
    },
    "phone_number": {
      "type": "string",
      "description": "Phone number of individual to be anonymised, in E.164/International format (e.g. starting \"+447...\")"
    },
    "identifier": {
      "type": "object",
      "description": "An identifier as defined in your account's identity resolution configuration, used to identify the individual to be anonymised. Accepts any configured identifier type, including standard ones such as `email`, as well as custom ones such as `loyalty_id`. Provide this instead of `email_address`, `customer_id` or `phone_number`.",
      "required": [
        "type",
        "value"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The identifier type, as defined in your identity resolution configuration. E.g. `loyalty_id` or `email`."
        },
        "value": {
          "type": "string",
          "description": "The identifier value of the individual to be anonymised."
        }
      }
    },
    "comment": {
      "type": "string",
      "description": "Optional user supplied comment text"
    },
    "action": {
      "type": "string",
      "description": "The action to take on this individual's data. The only supported value currently is \"anonymise\"",
      "enum": [
        "anonymise"
      ]
    }
  }
}