Docusign转换Pdf字段对于单个收件人?

时间:2013-11-18 16:49:00

标签: docusignapi envelope

我在DocuSign中创建了一个信封,其中一个文档包含转换PDF字段。此信封将发送给多个收件人,并且所有转换PDF字段都可以编辑。

我想知道是否有办法只允许一个收件人编辑转换PDF字段,而不是允许所有收件人使用DocuSign API编辑转换PDF字段。

1 个答案:

答案 0 :(得分:2)

在“创建信封”API请求中,为您要“拥有”转换后的PDF字段的收件人将 defaultRecipient 属性设置为 true 。以下是显示如何设置 defaultRecipient 属性的示例请求:

POST https://demo.docusign.net/restapi/v2/accounts/ACCOUNT_NUMBER/envelopes HTTP/1.1

X-DocuSign-Authentication: {"Username":"USER_NAME","Password":"PASSWORD","IntegratorKey":"INTEGRATOR_KEY"}
Content-Type: multipart/form-data; boundary=MY_BOUNDARY
Accept: application/json
Host: demo.docusign.net
Content-Length: 59549

--MY_BOUNDARY
Content-Type: application/json
Content-Disposition: form-data

{
    "emailBlurb":"Test Email Body",
    "emailSubject": "Test Email Subject",
    "status" : "sent",
    "compositeTemplates": [
    {
        "inlineTemplates": [
        {
            "sequence" : 1,
            "recipients": {
                "signers" : [{
                    "email": "sallysemail@outlook.com",
                    "name": "Sally Adamson",
                    "recipientId": "1",
                    "defaultRecipient": "true"
                }]
            }
        }],
        "document": {
            "documentId": 1,
            "name": "Customer Agreement",
            "transformPdfFields": "true"
        }
    }]
}

--MY_BOUNDARY
Content-Type: application/pdf
Content-Disposition: file; filename="SampleForm.pdf"; documentid="1"

<document bytes removed>

--MY_BOUNDARY--