---
title: "Redact"
method: PATCH
path: "/api/v2/compliance/redact"
---

# Redact

`PATCH /api/v2/compliance/redact`

Note: When passed an email, phone number, Shopify customer ID, or Postscript subscriber ID, this endpoint will also unsubscribe the subscriber if they have an active subscription

## Headers

- `X-Postscript-Shop-Token` string

## Request body

- object
  - `postscript_subscriber_id` string — ID of the subscriber you'd like to redact.
  - `shopify_customer_id` string — A shopify customer id of the subscriber you'd like to redact.
  - `email` string — An email of the subscriber you'd like to redact.
  - `phone_number` string — A phone number of the subscriber you'd like to redact.

## Response `202`

202

- object
  - `message` string

## Other responses

- `403` — 403

---

[API](https://skmtc.net/postscript/apis/partner-api.md) · [All operations](https://skmtc.net/postscript/apis/partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/postscript/partner-api/versions/cdc907985776/schema)
