我在理解內嵌模板的工作方式時遇到了問題。我有2個服務器模板和2個內聯模板,1個內聯模板以結合服務器模板。我想看看我是否不填寫信封仍然可用的內聯模板的信息。這裏是我的要求:複合模板的意外行爲
請求
{
"compositeTemplates": [
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "8a3a21af-4348-45e1-85b9-72a331c9c67a"
}
],
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers": []
}
}
],
"document": {
"documentId": "2",
"name": "FinalSale.docx",
"fileExtension": "docx",
"documentBase64": [bytearray]
}
},
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "d22048be-4bfe-43c2-9acf-3d5bcd79144f"
}
],
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers": [
{
"name": "Kathy Keaton",
"email": "[email protected]",
"recipientId": "1",
"accessCode": "5000",
"routingOrder": "1",
"roleName": "##Buyer1"
},
{
"name": "Kathy Lloyd",
"email": "[email protected]",
"recipientId": "2",
"accessCode": "5000",
"routingOrder": "2",
"roleName": "##Seller1"
}
]
}
}
],
"document": {
"documentId": "1",
"name": "Going to test out signatures and initials.docx",
"fileExtension": "docx",
"documentFields": [
{
"name": "dgsvalue",
"value": "dgs-222"
}
],
"documentBase64": [bytearray]
}
}
],
"status": "sent",
"emailSubject": "Please sign the following 2 documents at 2:39 PM"
}
響應
{
"envelopeId": "f8a090cf-ddc3-4612-8f24-9ff13beddc48",
"uri": "/envelopes/f8a090cf-ddc3-4612-8f24-9ff13beddc48",
"statusDateTime": "2017-02-01T19:39:26.2330000Z",
"status": "sent"
}
我假設聯模板必須提供所有簽名者。 2個模板中的角色名稱相同(## Buyer1和## Seller1位於兩個模板中)。我原以爲沒有填入內聯模板就意味着它會在特定文件上失敗。我錯了,但我不知道爲什麼。它是否成功,因爲角色名稱在兩個服務器模板上都是相同的,並將其指定爲一個內聯模板就足夠了?
謝謝你的信息。它今天下午開着我的屁股。 –
請儘量使用http://docs.docusign.com上的當前文檔。謝謝! –