BizKitHub
DocsAPI ReferenceContact/bff/contact/anonymize
postContactAdmin BFF

/bff/contact/anonymize

Irreversibly nulls every identifying field on a contact while keeping the row (and its FKs from invoices, orders, etc.) intact. Blocks with HTTP 409 if the contact still has any order in a non-terminal status (new / processing) — the operator must finalise or storno them first so fulfilment is not left without a delivery address. Deletes secondary e-mails, addresses, bank accounts, custom fields, attributes, meta, ARES company records, and password history. Invalidates active sessions. Preserves accounting data: invoices carry an immutable customerSnapshot so historical bookkeeping survives the wipe.

ContactpostBffContactAnonymize

Parameters

JSON body

Request body

application/json
idstringRequired

Contact external ID.

reasonstringRequired

Free-text reason for the anonymisation. Recorded into shop__contact.deleted_reason and the operator audit feed; minimum 10 chars to discourage empty placeholders.

Length: 101000

Response schema

1 status code documented

200Success
object | object
One of 2:
Variant 1
success"true"Required
Variant 2
success"false"Required
error"pending_orders"Required
pendingOrdersobject[]Required
Each array item:
orderNumberstringRequired
hashstringRequired
statusCodestringRequired
statusTypeCode"new" | "processing"Required

Response example

application/json
{
  "success": true
}

Request example

POST /bff/contact/anonymize

post
curl -X POST "https://api.bizkithub.com/bff/contact/anonymize" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "id": "example_id",
  "reason": "example_reason"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key