Docs

Log into read the version of docs relevant to your site.

How do I restore a deleted Subscription? Undoing Delete operation

Problem Statement

You accidentally deleted a subscription and want to restore it or get its details back.

Solution

Deletion is irreversible, but you can retrieve the deleted subscription data and re-import it.

Steps to Set It Up

  1. From Events: Open the subscription event that shows the deletion to get the subscription details at the time of deletion.
  1. From API: Use the List Subscriptions API with include_deleted = true.
  2. Restore: Use Create or Import Subscription to restore the data in Chargebee.

Important Notes

Note:

Deleting a subscription also deletes its invoices. Invoices must be imported separately.

Was this article helpful?