Docusignapi 使用多个服务器模板记录一个信封

Docusignapi 使用多个服务器模板记录一个信封,docusignapi,docusigncompositetmplts,Docusignapi,Docusigncompositetmplts,我已经成功地将docusign API与单个模板、角色、选项卡等一起使用。。。我的用例现在是: 1有一个包含多个服务器模板的信封 2两个服务器模板的角色相同 3但是,每个模板的每个角色可能有不同的选项卡 通过阅读Docusign API和尝试与错误,我很接近,但就是不能在这里完成。以下是我当前的JSON: accountId = 414772 baseUrl = https://demo.docusign.net/restapi/v2/accounts/414772 { "account

我已经成功地将docusign API与单个模板、角色、选项卡等一起使用。。。我的用例现在是:

1有一个包含多个服务器模板的信封

2两个服务器模板的角色相同

3但是,每个模板的每个角色可能有不同的选项卡

通过阅读Docusign API和尝试与错误,我很接近,但就是不能在这里完成。以下是我当前的JSON:

accountId = 414772
baseUrl = https://demo.docusign.net/restapi/v2/accounts/414772
{
    "accountId": "414772",
    "emailSubject": "DocuSign API - Signature Request from Template",
    "compositeTemplates": [
        {
            "serverTemplates": [
                {
                    "sequence": 1,
                    "templateId": "F42C617E-0C61-4A98-944E-F9CAA0AE55D9"
                }
            ],
            "inlineTemplates": [
                {
                    "sequence": 2,
                    "recipients": {
                        "signers": [
                            {
                                "recipientId": 1,
                                "email": "reirealtor@mailinator.com",
                                "name": "REI Realtor",
                                "roleName": "Realtor",
                                "tabs": {
                                    "textTabs": [
                                        {
                                            "tabLabel": "\\*header_address",
                                            "value": "SOME TEST INFO GOES HERE"
                                        },
                                        {
                                            "tabLabel": "Address",
                                            "value": "123 REally Cool St"
                                        }
                                    ]
                                }
                            },
                            {
                                "recipientId": 2,
                                "email": "reibuyer@mailinator.com",
                                "name": "John Doe",
                                "roleName": "Client"
                            }
                        ]
                    }
                }
            ]
        },
        {
            "serverTemplates": [
                {
                    "sequence": 1,
                    "templateId": "47F5C07B-016C-4E6D-B31D-DCEF9AEAAA69"
                }
            ],
            "inlineTemplates": [
                {
                    "sequence": 2,
                    "recipients": {
                        "signers": [
                            {
                                "recipientId": 1,
                                "email": "reirealtor@mailinator.com",
                                "name": "REI Realtor",
                                "roleName": "Realtor",
                                "tabs": {
                                    "textTabs": [
                                        {
                                            "tabLabel": "\\*header_address",
                                            "value": "SOME TEST INFO GOES HERE"
                                        },
                                        {
                                            "tabLabel": "Some Other Tab",
                                                "value": "Populate some text here"
                                        }
                                    ]
                                }
                            },
                            {
                                "recipientId": 2,
                                "email": "reibuyer@mailinator.com",
                                "name": "John Doe",
                                "roleName": "Client"
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "status": "sent"
}
所以很明显这不起作用,但我没有得到任何反馈,为什么Docusign没有回复。我已经把范围缩小到第四个签名区了

"recipientId": 2,
"email": "reibuyer@mailinator.com",
"name": "John Doe",
"roleName": "Client"
如果删除此块,它将创建信封并发送,但我的第二个模板没有签名块。我怀疑我从一开始就做错了


有什么想法吗?

我认为您真正的问题是序列和ID上的数字与字符串。今天晚些时候,我将用你的JSDON模拟一篇文章,但这里有一个有效的示例供你同时回顾:

{
        "emailSubject": "Test 3",
        "emailBlurb": "Using two templates from composite template structure",
               "brandId" : "f8c86e34-722e-4360-a9a0-54647bcd3004",
        "status": "created",   
        "compositeTemplates": [{
               "serverTemplates": [{
                       "sequence": "1",
                       "templateId": "6E558133-112C-434E-BF84-7C4DF340F042"
               }],
               "inlineTemplates": [{
                       "sequence": "1",
                       "recipients": {
                              "signers": [{
                                      "email": "David.grigsby@docusign.com",
                                      "name": "David W. Grigsby",
                                      "recipientId": "1",
                                      "roleName": "Role",
                                      "tabs": {
                                             "textTabs": [{
                                                     "value": "David Grigsby",
                                                     "tabLabel": "name"
                                             },
                                             {
                                                     "value": "David",
                                                     "tabLabel": "first_name"
                                             }]
                                      }
                              }]
                       }
               }]
        },
        {
               "serverTemplates": [{
                       "sequence": "2",
                       "templateId": "12C8894E-505C-480F-92FF-245DC387AD34"
               }],
               "inlineTemplates": [{
                       "sequence": "2",
                       "recipients": {
                              "signers": [{
                                      "email": "David.grigsby@docusign.com",
                                      "name": "David W. Grigsby",
                                      "recipientId": "1",
                                      "roleName": "Role",
                                      "tabs": {
                                             "textTabs": [{
                                                     "value": "David W. Grigsby",
                                                     "tabLabel": "name"
                                             },
                                             {
                                                     "value": "Grigsby",
                                                     "tabLabel": "last_name"
                                             }]
                                      }
                              }]
                       }
               }]
        }]
}

我认为您真正的问题是序列和ID上的数字与字符串。今天晚些时候,我将用你的JSDON模拟一篇文章,但这里有一个有效的示例供你同时回顾:

{
        "emailSubject": "Test 3",
        "emailBlurb": "Using two templates from composite template structure",
               "brandId" : "f8c86e34-722e-4360-a9a0-54647bcd3004",
        "status": "created",   
        "compositeTemplates": [{
               "serverTemplates": [{
                       "sequence": "1",
                       "templateId": "6E558133-112C-434E-BF84-7C4DF340F042"
               }],
               "inlineTemplates": [{
                       "sequence": "1",
                       "recipients": {
                              "signers": [{
                                      "email": "David.grigsby@docusign.com",
                                      "name": "David W. Grigsby",
                                      "recipientId": "1",
                                      "roleName": "Role",
                                      "tabs": {
                                             "textTabs": [{
                                                     "value": "David Grigsby",
                                                     "tabLabel": "name"
                                             },
                                             {
                                                     "value": "David",
                                                     "tabLabel": "first_name"
                                             }]
                                      }
                              }]
                       }
               }]
        },
        {
               "serverTemplates": [{
                       "sequence": "2",
                       "templateId": "12C8894E-505C-480F-92FF-245DC387AD34"
               }],
               "inlineTemplates": [{
                       "sequence": "2",
                       "recipients": {
                              "signers": [{
                                      "email": "David.grigsby@docusign.com",
                                      "name": "David W. Grigsby",
                                      "recipientId": "1",
                                      "roleName": "Role",
                                      "tabs": {
                                             "textTabs": [{
                                                     "value": "David W. Grigsby",
                                                     "tabLabel": "name"
                                             },
                                             {
                                                     "value": "Grigsby",
                                                     "tabLabel": "last_name"
                                             }]
                                      }
                              }]
                       }
               }]
        }]
}

有几件事我觉得我做错了。我仿效了你的榜样,让它发挥了作用——谢谢你!另请注意,docusign没有响应的原因是由于一些由多个部分组成的IIS问题。我在标题中添加了一个Expect:,至少我开始得到回复。@user3202446-很好,你想重新添加你的工作版本,否则我将在周末模拟我认为是你的问题所期望的结果。我认为有几件事我错了。我仿效了你的榜样,让它发挥了作用——谢谢你!另请注意,docusign没有响应的原因是由于一些由多个部分组成的IIS问题。我在标题中添加了一个Expect:,至少我开始得到回复。@user3202446-很好,您想重新添加您的工作版本,否则我将在周末模拟您的问题的预期结果