How to add additional documents to a Docusign Composite Template that has tabs?

I have a server template that has two documents, two recipients and two custom tabs placed on top of the first page of the first document.

My business requirements is to add a supplement document at the end of the documents provided by the server template. How do you accomplish that? I have literally tried every possible JSON combination. Here is my latest failed attempt:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"emailSubject": "Electronic Signature Request",
"emailBlurb": "Hi! an electronic signature request has been sent your way!",
"status": "created",
"compositeTemplates": [
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "hello-39ba-40a1-975d-world"
}
],
"inlineTemplates": [
{
"sequence": "2",
"recipients": {
"signers": [
{
"email": "[email protected]",
"name": "Signer One",
"roleName": "Contact",
"tabs": {}
},
{
"email": "[email protected]",
"name": "Signer Two",
"roleName": "Signer 2",
"tabs": {}
},
{
"email": "[email protected]",
"name": "Amy Anderson",
"roleName": "Signer 3",
"recipientId": 3,
"tabs": {
"textTabs": [
{
"tabLabel": "Doc Version",
"value": "July FDD",
"customTabId": "foo-foo-406d-814f-cc145e24634e"
},
{
"tabLabel": "Recipient label",
"value": "Anderson",
"customTabId": "foo-foo-43c9-9759-28b1158dcb42"
}
]
}
}
]
}
}
]
},
{
"document": {
"documentId": 1,
"name": "supplement-doc.pdf",
"documentBase64": "JVBERi0..."
}
}
]
}
</code>
<code>{ "emailSubject": "Electronic Signature Request", "emailBlurb": "Hi! an electronic signature request has been sent your way!", "status": "created", "compositeTemplates": [ { "serverTemplates": [ { "sequence": "1", "templateId": "hello-39ba-40a1-975d-world" } ], "inlineTemplates": [ { "sequence": "2", "recipients": { "signers": [ { "email": "[email protected]", "name": "Signer One", "roleName": "Contact", "tabs": {} }, { "email": "[email protected]", "name": "Signer Two", "roleName": "Signer 2", "tabs": {} }, { "email": "[email protected]", "name": "Amy Anderson", "roleName": "Signer 3", "recipientId": 3, "tabs": { "textTabs": [ { "tabLabel": "Doc Version", "value": "July FDD", "customTabId": "foo-foo-406d-814f-cc145e24634e" }, { "tabLabel": "Recipient label", "value": "Anderson", "customTabId": "foo-foo-43c9-9759-28b1158dcb42" } ] } } ] } } ] }, { "document": { "documentId": 1, "name": "supplement-doc.pdf", "documentBase64": "JVBERi0..." } } ] } </code>
{
    "emailSubject": "Electronic Signature Request",
    "emailBlurb": "Hi! an electronic signature request has been sent your way!",
    "status": "created",
    "compositeTemplates": [
        {
            "serverTemplates": [
                {
                    "sequence": "1",
                    "templateId": "hello-39ba-40a1-975d-world"
                }
            ],
            "inlineTemplates": [
                {
                    "sequence": "2",
                    "recipients": {
                        "signers": [
                            {
                                "email": "[email protected]",
                                "name": "Signer One",
                                "roleName": "Contact",
                                "tabs": {}
                            },
                            {
                                "email": "[email protected]",
                                "name": "Signer Two",
                                "roleName": "Signer 2",
                                "tabs": {}
                            },
                            {
                                "email": "[email protected]",
                                "name": "Amy Anderson",
                                "roleName": "Signer 3",
                                "recipientId": 3,
                                "tabs": {
                                    "textTabs": [
                                        {
                                            "tabLabel": "Doc Version",
                                            "value": "July FDD",
                                            "customTabId": "foo-foo-406d-814f-cc145e24634e"
                                        },
                                        {
                                            "tabLabel": "Recipient label",
                                            "value": "Anderson",
                                            "customTabId": "foo-foo-43c9-9759-28b1158dcb42"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        },
        {
            "document": {
                "documentId": 1,
                "name": "supplement-doc.pdf",
                "documentBase64": "JVBERi0..."
            }
        }
    ]
}

The error thrown is:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"errorCode": "TAB_REFERS_TO_MISSING_DOCUMENT",
"message": "The DocumentId specified in the tab element does not refer to a document in this envelope. Tab refers to DocumentId 66891084 which is not present."
}
</code>
<code>{ "errorCode": "TAB_REFERS_TO_MISSING_DOCUMENT", "message": "The DocumentId specified in the tab element does not refer to a document in this envelope. Tab refers to DocumentId 66891084 which is not present." } </code>
{
    "errorCode": "TAB_REFERS_TO_MISSING_DOCUMENT",
    "message": "The DocumentId specified in the tab element does not refer to a document in this envelope. Tab refers to DocumentId 66891084 which is not present."
}

If I remove the last “document” composite template item, the the error is:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"errorCode": "INVALID_REQUEST_PARAMETER",
"message": "The request contained at least one invalid parameter. 'recipientId' not set for recipient."
}
</code>
<code>{ "errorCode": "INVALID_REQUEST_PARAMETER", "message": "The request contained at least one invalid parameter. 'recipientId' not set for recipient." } </code>
{
    "errorCode": "INVALID_REQUEST_PARAMETER",
    "message": "The request contained at least one invalid parameter. 'recipientId' not set for recipient."
}

There are errors everywhere… After two days I am literally pulling out my hair…

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật