Store the latest email document Id and name in invoicepatch https://api.zenskar.com/invoices/{invoice_id}/document-infoRefer to the documentation on document templates.