首页 > 解决方案 > 如何获取嵌入式签名组的 url 签名

问题描述

我为具有嵌入式签名的签名组创建了一个信封,我尝试获取一个要签名的 url,但是当我将 json 发送到视图/收件人时,它可以查看不签名。

我发送这个 json 来创建一个信封

   {
   "templateId":null,
   "subject":'Sign',
   "status":"sent",
   "recipients":{
      "signers":[
         {
            "type_x":"Signer",
            "tabs":{
               "signHereTabs":[
                  {
                     "yPosition":null,
                     "xPosition":null,
                     "tabLabel":null,
                     "recipientId":null,
                     "pageNumber":null,
                     "name":"Sign the document",
                     "documentId":"1",
                     "anchorYOffset":"70",
                     "anchorXOffset":"0",
                     "anchorUnits":"pixels",
                     "anchorString":"Customer signature",
                     "anchorIgnoreIfNotPresent":"false"
                  }
               ],
               "initialHereTabs":[
                  {
                     "yPosition":null,
                     "xPosition":null,
                     "tabLabel":null,
                     "recipientId":"1",
                     "pageNumber":null,
                     "name":null,
                     "documentId":"1",
                     "anchorYOffset":"80",
                     "anchorXOffset":"0",
                     "anchorUnits":"pixels",
                     "anchorString":"Customer Initials",
                     "anchorIgnoreIfNotPresent":null
                  }
               ]
            },
            "signingGroupId":"1234",
            "routingOrder":1,
            "recipientId":"1",
         }
      ]
   },
   "emailSubject":"Sign the document",
   "documents":[
      {
         "name":"ffffff.pdf",
         "documentId":"1",
         "documentBase64":"xxxxxxxxx=="
      }
   ],
   "accountId":"xxxxxxxxxx"
}

我发送此 json 以获取要签名的 url

POST /restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/views/recipient

{
   "xFrameOptionsAllowFromUrl":"xxxxxx",
   "xFrameOptions":"allow_from",
   "userName":"xxxxxx",
   "signingGroup":"1234",
   "signerClientId":null,
   "securityDomain":"xxxxxxxxx",
   "returnUrl":"xxxxxxxxxxxxxx",
   "recipientId":null,
   "id":"1",
   "email":"xxxxxxxxxx",
   "documentId":null,
   "authenticationMethod":"HTTPBasicAuth",
   "authenticationInstant":null
}

标签: salesforcedocusignapi

解决方案


不幸的是,我发现您不能将嵌入式签名用于签名组。建立一个签名组,以便多人可以签名并且您不知道它是谁。它基于一组电子邮件地址。这些收件人都会收到电子邮件,他们中的任何一个人都可以单击该链接并签名,但您无法构建将签名组嵌入为收件人的集成,因为您需要在嵌入签名组时确切知道签名者是谁。


推荐阅读