---
title: Data Privacy Request
slug: public-apis/data-privacy-request
createdAt: 2026-03-16T16:53:41.354Z
---

{
  "id": "BzGr-I_PC0s_gHBUapMHO",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.accertify.net/api/v1/dataprivacy/request/api/v1/dataprivacy/request",
    "name": "Data Privacy Request",
    "description": "A data privacy request is submitted.\n",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "search",
          "type": "object",
          "example": "{\"firstName\":\"John\",\"lastName\":\"Doe\",\"address\":\"2 Pierce Place, Itasca, IL 60143\",\"emailAddress\":\"JD@test.com\"}",
          "description": "The inputs for data privacy request.",
          "schema": [
            {
              "name": "firstName",
              "kind": "optional",
              "type": "string",
              "description": "Required. Customer's first name.",
              "example": "John"
            },
            {
              "name": "lastName",
              "kind": "optional",
              "type": "string",
              "description": "Required. Customer's last name.",
              "example": "Doe"
            },
            {
              "name": "emailAddress",
              "kind": "optional",
              "type": "string",
              "description": "Required. Customer's supplied email address.",
              "example": "JD@test.com"
            },
            {
              "name": "address",
              "kind": "optional",
              "type": "string",
              "description": "Optional. The Customer's street address and city.",
              "example": "2 Pierce Place, Itasca, IL 60143"
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success Response. Indicates your requests is successfully routed to our Support team's queue.\n",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Success Response. Indicates your requests is successfully routed to our Support team's queue.\n",
            "customType": "SuccessResponse",
            "schema": [
              {
                "name": "requestName",
                "kind": "optional",
                "type": "string",
                "description": "The definition name.",
                "example": "api_user-787877878787"
              }
            ],
            "modelRef": "#/definitions/SuccessResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "ValidationFailedError Response\n",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "ValidationFailedError Response\n",
            "customType": "ValidationFailedError",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "integer",
                "description": "The error code.",
                "example": 400
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "The error message.",
                "example": "Validation Failed"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "object",
                "description": "The error details.",
                "example": "Missing fields emailAddress",
                "schema": []
              }
            ],
            "modelRef": "#/definitions/ValidationFailedError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Error response for authorization failures\n",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response for authorization failures\n",
            "customType": "NotAuthorizedError",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "integer",
                "description": "The error code.",
                "example": 401
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "The error message.",
                "example": "Not authorized"
              }
            ],
            "modelRef": "#/definitions/NotAuthorizedError",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Error response when we are unable to process due to internal error.\n",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Error response when we are unable to process due to internal error.\n",
            "customType": "InternalServerError",
            "schema": [
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "integer",
                "description": "The error code.",
                "example": 500
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "The error message.",
                "example": "Internal Server Error"
              }
            ],
            "modelRef": "#/definitions/InternalServerError",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.accertify.net/api/v1/dataprivacy/request/api/v1/dataprivacy/request \\\n     --header 'accept: application/json'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.accertify.net/api/v1/dataprivacy/request/api/v1/dataprivacy/request\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.accertify.net/api/v1/dataprivacy/request/api/v1/dataprivacy/request\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.accertify.net/api/v1/dataprivacy/request/api/v1/dataprivacy/request\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success Response. Indicates your requests is successfully routed to our Support team's queue.\n{\n  \"requestName\": \"api_user-787877878787\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// ValidationFailedError Response\n{\n  \"errorCode\": 400,\n  \"errorMessage\": \"Validation Failed\",\n  \"errors\": {}\n}"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Error response for authorization failures\n{\n  \"errorCode\": 401,\n  \"errorMessage\": \"Not authorized\"\n}"
        },
        {
          "id": "response-3-500",
          "language": "500",
          "code": "// Error response when we are unable to process due to internal error.\n{\n  \"errorCode\": 500,\n  \"errorMessage\": \"Internal Server Error\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}