【发布时间】:2015-05-06 16:59:04
【问题描述】:
我们希望使用 DocuSign 签署合同。我们的工作流程是在我们的文档服务器上创建文档,其中包含用于在此处签名选项卡、全名选项卡和日期选项卡的表单字段。然后将文档发送到 DocuSign,我正在尝试使用 transformPdfFormFields 将表单字段转换为 SignHere、Fullname 和 DateSigned 选项卡。不幸的是,客户端库目前不支持此功能,因此我正在尝试更改源代码以提供此功能,不幸的是文档和错误响应并没有让这变得太容易。
我遇到了this 在堆栈溢出上发帖,这对我有帮助,但是我看不出与我发送的内容(不起作用)和 SO 帖子中的请求有任何显着差异。我最初在DocuSign forums 上发帖,但被要求在 SO 上发帖。
这是我从 API 返回的其余跟踪信息,其中一些数据是匿名的。
POST: https://demo.docusign.net/restapi/v2/accounts/12345/envelopes?api_password=true
标题:
X-DocuSign-Authentication:<DocuSignCredentials><Username>foo@bar.de</Username><Password>AReallySecurePassword=</Password><IntegratorKey>ABCD-ef1gggg1-111a-1c11-b11e-f1e10111e111</IntegratorKey></DocuSignCredentials>
Content-Type:multipart/form-data; boundary=00000000-0000-0000-0000-000000000000
Host:demo.docusign.net
Content-Length:1052145
Expect:100-continue
请求流:
--00000000-0000-0000-0000-000000000000
Content-Type: application/json
Content-Disposition: form-data
{
"emailBlurb": "Test Blurb for EnvelopeCreateUsingCompositeTemplates",
"emailSubject": "Test subject for EnvelopeCreateUsingCompositeTemplates",
"status": "sent",
"compositeTemplates": [
{
"compositeTemplateId": "1",
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers": [
{
"email": "foo@bar.com",
"name": "Signer 1: 981274442609345",
"recipientId": "1",
"tabs": {
"signHereTabs": [
{
"pageNumber": 0,
"documentId": 1,
"xPosition": 0,
"yPosition": 0,
"height": 0,
"width": 0,
"tabLabel": "Signature_LesseeContractSignature",
"anchorXOffset": 0,
"anchorYOffset": 0,
"required": false,
"recipientId": "1"
}
],
"fullNameTabs": [
{
"pageNumber": 0,
"documentId": 1,
"xPosition": 0,
"yPosition": 0,
"height": 0,
"width": 0,
"tabLabel": "Signature_LesseeContractFullName",
"anchorXOffset": 0,
"anchorYOffset": 0,
"required": false,
"recipientId": "1"
}
],
"dateSignedTabs": [
{
"pageNumber": 0,
"documentId": 1,
"xPosition": 0,
"yPosition": 0,
"height": 0,
"width": 0,
"tabLabel": "Signature_LesseeContractDate",
"anchorXOffset": 0,
"anchorYOffset": 0,
"required": false,
"recipientId": "1"
}
]
},
"emailNotification": {
"emailBody": "Signer 1 Body: Testing the tabs 981274442659854",
"emailSubject": "Signer 1 Body: 981274442659854",
"supportedLanguage": "en"
}
}
]
}
}
]
}
],
"documents": [
{
"documentId": "1",
"name": "Test Contract With Fields.pdf",
"transformPdfFields": "true"
}
]
}
--00000000-0000-0000-0000-000000000000
Content-Type: application/pdf
Content-Disposition: file; filename="Test Contract With Fields.pdf"; documentId=1; compositeTemplateId="1"
[file bits go here]
--00000000-0000-0000-0000-000000000000--
回复:
{
"errorCode": "ENVELOPE_IS_INCOMPLETE",
"message": "The Envelope is not Complete. A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line."
}
【问题讨论】:
标签: docusignapi