I'm building a dynamic PDF in NetSuite. I want to upload it to a new DocuSign envelope using the DocuSign REST API. I've seen a lot of answers, but I'm missing something. I'm finding myself running around in circles in the API and online.
In the DocuSign REST API for [creating Envelopes][1] it details how to add a document to an envelope, specifically using the documents node:
"documents": [{
"documentId": "1",
"name": "contract.pdf",
"documentBase64": "base64 document bytes...",
}],
Is the "name" property the filepath where the document is located in my NetSuite directory? Is it instead expecting the file to already be in the DocuSign document folder? Needing to encode implies the former. Using only a filename implies the latter.
Thank you.