使用Signer的PDF表单字段时,在Docusign上遇到Bad Request 400错误

时间:2018-08-13 18:14:47

标签: pdf docusignapi

我尝试在Docusign中使用Rest API C#创建信封。我正在使用PDF作为带有表单域的文档进行签名仪式。我创建了以下JSON请求,并将字节数组用于PDF。

这是我的JSON

{  
   'status':'sent',
   'emailSubject':'Please Sign the contract',
   'compositeTemplates':[  
      {  
         'inlineTemplates':[  
            {  
               'sequence':'1',
               'recipients':{  
                  'signers':[  
                     {  
                        'email':'Test@gmail.com',
                        'defaultRecipient':'true',
                        'name':'Charles Smith',
                        'recipientId':'1',
                        'routingOrder':'1',
                        'tabs':{  
                           'signHereTabs':[  
                              {  
                                 'tabLabel':'eSignSignHere_Signaure1*'
                              }
                           ]
                        }
                     },
                     {  
                        'email':'test2@gmail.com',
                        'defaultRecipient':'true',
                        'name':'firstname_462 lastname_462',
                        'recipientId':'2',
                        'routingOrder':'2',
                        'tabs':{  
                           'signHereTabs':[  
                              {  
                                 'tabLabel':'eSignSignHere_Signature2*'
                              }
                           ]
                        }
                     },

                  ]
               }
            }
         ],
         'documents':[  
            {  
               'documentBase64':<<Base64Pdf>>,
               'documentId':'1',
               'name':'SigningContract.Pdf',
               'transformPdfFields':'true',
               'fileExtension':'pdf'
            }
         ]
      }
   ]
}

但是在创建信封时遇到了一些异常,请找到附件中的异常图像

enter image description here 这是内容类型和方法,

 httpWebRequest.Method = "Post";
                httpWebRequest.ContentType = "application/json";

0 个答案:

没有答案