customer.anonymize
Anonymize a customer row (KVKK request) — order snapshots stay under the statutory retention.
- scope:
orders:write - storefront-visible (bumps the catalog generation): no
- destructive: yes — supports dryRun preview
Payload
| field | type | required | notes |
|---|---|---|---|
customerId | string (/^cus_[a-zA-Z0-9]{1,32}$/) | yes |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"customerId": {
"type": "string",
"pattern": "^cus_[a-zA-Z0-9]{1,32}$"
}
},
"required": [
"customerId"
],
"additionalProperties": false
}Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/customer.anonymize.md