Subscription management

Deleting and anonymizing a customer

Overview

Kyvento provides two procedures for removing a customer: deletion and GDPR anonymization. Both procedures also affect the connected payment provider: if a record for this customer exists at the connected payment provider, it is deleted as well. How far the removal at the provider reaches depends on the provider's API: at Unzer, a stored payment method remains.

This article describes which procedure is available in which case, which data is removed, which data is retained due to statutory retention obligations, and what the deletion at the payment provider means in practice.

If a record for this customer exists at the connected payment provider (e.g. Stripe or Unzer), it is removed on deletion as well as on anonymization. This is based on the obligation to erase under Art. 17 GDPR and the data processing agreement.

At Unzer, a stored payment method remains – how to deal with it is described in the section Scope by provider.

Procedures: deletion or anonymization

You start both procedures on the customer detail page via the "More actions" menu, in the "Danger zone" section: "Delete" or "Anonymize (GDPR)". Only the account owner can carry out an anonymization. Whether a customer can be deleted depends on their invoice status; anonymization is available to the account owner for every customer who has not been deleted yet:

Procedure Prerequisite Result
Deletion The customer has no finalized invoice and no open credit balance. The customer is hidden from the customer list. Their data is not made unrecognizable in the process – only anonymization does that.
Anonymization (GDPR) Account owner; the prerequisites are listed below. The route for customers with finalized invoices, but also possible without them. Personal data is rendered unrecognizable; the documents subject to retention obligations are kept.

An attempt to delete a customer with finalized invoices is rejected; the message refers to anonymization. The reason is the commercial retention obligation: an invoice must remain attributable to its recipient.

Deletion procedure

  1. Invoice check: if at least one finalized invoice exists or a customer credit balance is still open, the operation is aborted. Settle a credit balance beforehand – more on this in the section "Anonymization: prerequisites and procedure" below.
  2. Termination of subscriptions: all of the customer's subscriptions that are not yet archived are ended immediately and archived – whatever their status, paused ones included. If a cancellation fails, the entire deletion is rolled back.
  3. Deletion of the customer record in the Kyvento account: it is marked as deleted and hidden; its details remain stored. The customer then no longer appears in the customer list β€” not even with the "Show anonymized customers" filter β€” nor in its export ("Export"). If someone opens their detail page, for instance via a saved link, it only shows "This customer was deleted" with the note "Deleted customers can no longer be opened." The customer can no longer be retrieved via the API either: the API answers requests for them with HTTP 410 (CUSTOMER_ALREADY_DELETED).
  4. Deletion at the payment provider – asynchronously, see the following section.

Deletion cannot be reversed. Restoration via the interface or the API is not provided. If the same customer is created again later, a new record is created with no link to the previous one – at Stripe or Unzer as well. The deleted customer's customer number and DATEV debtor account become available again, provided no quote or order confirmation (other than drafts) carries them; a new import with the same number is then possible.

A deleted customer can no longer be anonymized either. If a customer requests the erasure of their data (Art. 17 GDPR), choose anonymization rather than deletion straight away: only anonymization renders the personal data unrecognizable. If the customer has already been deleted, please contact support.

Deletion at the payment provider

A customer record of their own β€” with name, address and email address β€” is kept by Stripe and Unzer. Both procedures β€” deletion and anonymization β€” therefore take effect there as well: Kyvento removes the customer record and the stored payment methods, as far as the provider's interface allows. How far that reaches differs:

Provider Customer record Stored payment method
Stripe is removed is removed along with the customer record
PayPal the provider does not keep one the stored access token (vault token) is removed
Unzer is removed remains in place β€” the interface provides no way to delete it

PayPal: maintains no customer record β€” there is only the stored payment method, whose saved access token (vault token) is removed. Collection is no longer possible after that.

Within Kyvento itself, the customer's payment methods are marked as deleted in all three cases β€” collection is no longer possible afterwards.

Scope by provider

At Unzer, the customer and the payment method are two independent resources. The customer record with name, address and email address is removed; for an individual payment method, Unzer provides no deletion route. It remains there until you instruct the provider to delete it β€” the basis is your contract with Unzer, who can carry out the deletion outside the interface. Nothing has failed here; the route simply does not exist.

Kyvento flags the remaining payment method in both procedures:

  • With anonymization, the operation is not considered complete: the customer shows the state "Payment method remains at the provider", and the account administration additionally receives the notification "Payment method remains at the payment provider". Once Unzer has confirmed the deletion, you close the operation on the customer via "Handled at the provider" with a reason, which is recorded in the change history.
  • With deletion, the account administration receives the notification "Payment method remains at the payment provider", naming the provider and the identifier of the remaining payment method β€” instruct the deletion using that identifier. The customer has already been deleted at that point and can no longer carry a state.

What stays with the provider

The payment history is not affected: executed payments, refunds and payouts remain in the payment provider's records. They are subject to that provider's retention obligations and are not part of the customer record.

Two practical consequences: a refund for a payment already executed is triggered directly at the payment provider after deletion and then recorded in Kyvento β€” the procedure is described for PayPal in Recording a PayPal refund manually in Kyvento. And if you create the same customer again later, a new customer record is created at the provider; payment methods have to be stored anew.

If deletion at the provider fails

The operation runs in the background and is retried several times if the provider is disrupted. Within Kyvento, the customer is deleted immediately after your confirmation.

If deletion ultimately fails, Kyvento reports it: an entry in the change history records the time, the provider and the error message, and the account administration is asked to delete the record at the provider manually. With anonymization, the customer additionally shows the status "Payment data deletion at the provider failed"; after manual deletion you close the operation via "Mark as handled externally" with a reason.

Retained data

Regardless of the procedure, the following data is retained:

  • Invoices and payments with the original recipient details. They are subject to the statutory retention obligations and must not be modified retrospectively – see GoBD-compliant archiving.
  • The change history of the operation: for deletion, the executing user and the time; for anonymization, additionally the mandatory reason.

The obligation to erase under data protection law is limited by the statutory retention obligations.

Anonymization: prerequisites and procedure

Anonymization is the route for customers who cannot be deleted because of finalized invoices; it is also available without such invoices. Prerequisites:

  • No active subscriptions. Ongoing contracts must be terminated first.
  • No open dunning procedure. Ongoing dunning runs must be completed – a paused dunning run still counts as open and does not lift the block.
  • No unpaid receivables. Unpaid invoices must first be collected, written off or cancelled – after anonymization, the customer can no longer be reached.
  • No customer credit balance. An existing credit balance must first be offset against an invoice or written off: on the customer page, in the "Customer credit" card, via "Adjust credit" with the transaction type "Manual adjustment", a negative "Adjustment amount (signed)" equal to the balance and the required field "Description".
  • Archived recipient details on all invoices. If these are missing on older invoices, they must be added by the administrator before anonymization is possible.

Documents with an e-invoice still in retention do not block anonymization. If the customer has such documents, Kyvento shows the notice "Documents of this customer are kept", stating how many such documents there are: the documents are not deleted and keep their recipient details – what is anonymized is the customer record. Whether you carry out the erasure request is your decision. Anonymization can then only be carried out once you have ticked the checkbox "I have read which documents are kept and carry out the erasure."

Before execution, Kyvento displays an overview of the impact: the number of active subscriptions, open dunning runs, finalized invoices, saved payment data and invoices without archived recipient data; where applicable, also the unpaid receivables (number of documents and amount) and the customer credit balance (amount). Confirmation requires a reason (e.g. "GDPR request dated 2026-05-09") and entry of the customer number. Anonymization cannot be reversed either.

On execution, name, company name, address, email address and phone numbers are replaced with placeholders; VAT ID and tax number are stored only as a non-reversible hash; stored payment methods and SEPA mandates are removed – at Unzer with the limitation described above; access to the customer portal is revoked; email history and checkout data are cleaned up. The customer then disappears from the customer list; it only appears there if you set the "Show anonymized customers" filter. Its detail page is read-only and marked as anonymized – that is also where the buttons "Handled at the provider" and "Mark as handled externally" mentioned above appear while the operation at the provider is still open; only the account owner sees them.

Checks before execution

  1. Open items: are there unpaid invoices? After anonymization, the recipient can no longer be contacted.
  2. Active subscriptions: on deletion, they are ended immediately.
  3. Outstanding refunds: refunds must be issued while the payment method is still stored at the provider.
  4. Data access request: if the customer requests a copy of their data in addition to deletion, create the export before deletion. You can currently only start a data export for a single customer via the API (POST /api/v1/customers/{id}/export); the "Account Data Export" in the interface covers the whole account. The finished file appears under "Imports & exports" β†’ "Export" in the list of exports as a customer export and can be downloaded there. Download it before you anonymize: anonymization also deletes this information file.

Error messages and blockers

  • "This customer has finalized invoices and cannot be deleted. Please use the GDPR anonymization workflow." – Expected behaviour. Use anonymization.
  • "This customer still has an open credit balance and cannot be deleted. Please settle the balance first (apply, pay out or correct it)." – offset the credit balance against an invoice or write it off via "Adjust credit" (see the prerequisites for anonymization), then delete again.
  • Anonymization blocked by active subscriptions: terminate the subscriptions, then run again.
  • Anonymization blocked by an open dunning procedure: complete the dunning run, i.e. pay, cancel or write off the dunned invoice as uncollectible. Pausing is not enough – paused dunning runs deliberately still count as open (for pausing itself, see Pausing or suspending dunning).
  • Anonymization blocked by unpaid receivables: collect the unpaid invoices, write them off or cancel them, then run again.
  • Anonymization blocked by a customer credit balance: offset the credit balance against an invoice or write it off via "Adjust credit" as a "Manual adjustment" with a negative amount (see prerequisites), then run again.
  • Missing archived recipient details: older invoices do not yet contain the recipient details as an archived snapshot. The administrator can add them; anonymization is possible afterwards.
  • Notice "Documents of this customer are kept": not a blocker. Tick the checkbox "I have read which documents are kept and carry out the erasure." so that anonymization can be carried out.
  • Notification of a failed deletion at the provider: delete the customer record manually in the payment provider's interface and then mark the operation as handled externally.
  • State "Payment method remains at the provider" (Unzer, after an anonymization): not an error, but the limit of the provider's API. Request the deletion of the payment method from Unzer and then close the operation, providing a reason.
  • Notification "Payment method remains at the payment provider" (Unzer, after a deletion): not an error either. The notification states the provider and the identifier of the payment method; use it to request the deletion from Unzer.

Related articles

← Back to Support

Related articles

Subscription management

Importing customers from a CSV file

Overview When you switch to Kyvento, you usually bring a customer base with you – for example the contact export of your...

Subscription management

Setting up goods shipping

Overview When your subscription does not only bill but also ships goods β€” a monthly box, a replacement part, a sensor β€”...

Subscription management

Managing shipments

Overview As soon as goods shipping is switched on and a subscription containing a shipping product is billed, the planne...