You can restore data if you're using the Advanced version of QuickBooks Online.
We just need to turn on the Online Back-up & Restore app. Once it’s complete, it’ll track any changes made to your company data. Then you can restore a backup at any point in time.
Here's how:
Log in to your QBO account.
Select Settings⚙.
Click Back up company.
Note: You might need to sign in to your Intuit account, then select Authorize to proceed.
Then, use the backup to restore your data from a specific date and time. It may take up to an hour to restore it. The fewer data the company has, the faster it takes.
Remember not to do anything in your company while the Online Back-up & Restore app restores your data. Once ready, you'll see a checkmark in the status. That’s when it’s safe to go back and use your company.
Go to Settings⚙ and choose Back up company.
Click the Restore menu, then select New Restore.
In the Company ▼dropdown menu, choose the company you want to overwrite and restore accounting data to.
In the Restore to ▼ dropdown menu, select the time and date you want to restore.
Make sure everything is correct, then click Create Restore.
Enter your company’s name, then select Restore.
For additional information, you may also check out this reference: Back up and restore your QuickBooks Online Advanced company. It includes steps on how to create a one-time backup manually and how it save it to Dropbox or Google Drive.
Don't hesitate to get back to this thread if you have follow up questions about restoring data in QuickBooks Online. I'll be happy to lend a helping hand. Have a nice day!