PDF self download in Database

Hello WIX Experts,
I am generating invoices using pdfgenerator API. However, the generated API URL lasts only for 30 days, and all the invoices after 30 days expires and have no records in the system. Is there a way the generated PDF from pdfgeneratorapi could be instantly saved in corresponding database item? (All automatic system)
If you could do this, quote me the price. Any other alternatives are also open!
Thank you

Alternative:
you can use Job Scheduler https://support.wix.com/en/article/corvid-scheduling-recurring-jobs to update your pdf url every 30 days