简体   繁体   中英

How to add document in DocuSign

I have following request to be sent to DocuSign API,

"emailSubject": 'DocuSign API - Signature Request on Document Call',
                    "documents": [{
                        "name": test.pdf,
                        "documentId": 1,
                    }]

What I dont understand is, where should the documents name be present and what about the documentId.

I got an error as follows:

{ errorCode: 'INVALID_REQUEST_PARAMETER',
  message: 'The request contained at least one invalid parameter. A document was defined without setting the \'name\' field.' }
Error calling webservice, status is:  400

I think it cannot find the pdf.

您应该在name字段中填写正确的路径:

"name": "path/to/existing/pdf/test.pdf",

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM