get https://api.piriod.com/purchases/credit-notes//finalize/
Finalize a Credit Note object. When the Credit Note is finalized, it is validated with the tax agency if the document type has tax regulations. After finalize you will no longer be able to update your credit note data. The status attribute of the credit note object will become to finalized. The local_file attribute of the Credit Note object will have a url to get the file that was sent to the tax agency, normally it is a file with an XML extension.