QuickBooks keeps your data within a year after the cancelation date. Before a year, you have an option to export your data. This way, you have copies and use them in the future. For the complete steps, check out this article: Export reports, lists, and other data from QuickBooks Online.
I've also added some articles about the life of QuickBooks after canceling, re-subscribing, and other topics.