如何在docusign中添加多个PDF

时间:2014-04-24 06:42:52

标签: docusignapi

我有一个docusign的开发者帐户,能够上传单个PDF并签名。但是根据我的要求,我需要一次性在docusign上上传多个PDF文件并相应地签名。我们目前正在使用docusign SOAP API,这里是示例访问URL:http://etplprojects.net/docusign_api/soap/这可能吗?请建议。

1 个答案:

答案 0 :(得分:0)

从复合模板和表单创建信封的简单示例SOAP方法:1个信封包含来自服务器模板的多个文档,但您可以将文档节点添加到内联模板并将其包含在那里,甚至不使用服务器模板,但性能是如果您已在服务器上使用静态PDF字节,角色(收件人)和选项卡,然后使用文档节点(不是复数)将服务器模板pdf字节替换为文档节点中指定的模板,则更好。

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns="http://www.docusign.net/API/3.0">
    <soap:Header>
    </soap:Header>
    <soap:Body>
        <ns:CreateEnvelopeFromTemplatesAndForms>
            <ns:EnvelopeInformation>
                <ns:AccountId>your account guid goes here</ns:AccountId>
                <ns:EmailBlurb>Your Email message</ns:EmailBlurb>
                <ns:Subject>Your Email subject</ns:Subject>
                <ns:Notification />
            </ns:EnvelopeInformation>
            <ns:CompositeTemplates>
                <ns:CompositeTemplate>
                    <ns:ServerTemplates>
                        <ns:ServerTemplate>
                            <ns:Sequence>1</ns:Sequence>
                            <ns:TemplateID>Your server template guid goes here
                            </ns:TemplateID>
                        </ns:ServerTemplate>
                    </ns:ServerTemplates>
                    <ns:InlineTemplates>
                        <ns:InlineTemplate>
                            <ns:Sequence>1</ns:Sequence>
                            <ns:Envelope>
                                <ns:AccountId>your account guid goes here</ns:AccountId>
                                <ns:Recipients>
                                    <ns:Recipient>
                                        <ns:ID>1</ns:ID>
                                        <ns:UserName>client Admin</ns:UserName>
                                        <ns:Email>youremail@gmail.com@gmail.com</ns:Email>
                                        <ns:Type>Signer</ns:Type>
                                        <ns:RoutingOrder>1</ns:RoutingOrder>
                                        <ns:RoleName>AE</ns:RoleName>
                                    </ns:Recipient>
                                    <ns:Recipient>
                                        <ns:ID>2</ns:ID>
                                        <ns:UserName>your Name</ns:UserName>
                                        <ns:Email>youremail@gmail.com@gmail.com</ns:Email>
                                        <ns:Type>Signer</ns:Type>
                                        <ns:RoutingOrder>2</ns:RoutingOrder>
                                        <ns:RoleName>Advertiser</ns:RoleName>
                                    </ns:Recipient>
                                </ns:Recipients>
                                <ns:Tabs />
                            </ns:Envelope>
                        </ns:InlineTemplate>
                    </ns:InlineTemplates>
                </ns:CompositeTemplate>
                <ns:CompositeTemplate>
                    <ns:ServerTemplates>
                        <ns:ServerTemplate>
                            <ns:Sequence>2</ns:Sequence>
                            <ns:TemplateID>your server template guid goes here
                            </ns:TemplateID>
                        </ns:ServerTemplate>
                    </ns:ServerTemplates>
                    <ns:InlineTemplates>
                        <ns:InlineTemplate>
                            <ns:Sequence>1</ns:Sequence>
                            <ns:Envelope>
                                <ns:AccountId>Your Account Guid goes here</ns:AccountId>
                                <ns:Recipients>
                                    <ns:Recipient>
                                        <ns:ID>1</ns:ID>
                                        <ns:UserName>client Admin</ns:UserName>
                                        <ns:Email>youremail@gmail.com</ns:Email>
                                        <ns:Type>Signer</ns:Type>
                                        <ns:RoutingOrder>1</ns:RoutingOrder>
                                        <ns:RoleName>AE</ns:RoleName>
                                    </ns:Recipient>
                                    <ns:Recipient>
                                        <ns:ID>2</ns:ID>
                                        <ns:UserName>David Grigsby</ns:UserName>
                                        <ns:Email>youremail@gmail.com</ns:Email>
                                        <ns:Type>Signer</ns:Type>
                                        <ns:RoutingOrder>2</ns:RoutingOrder>
                                        <ns:RoleName>Advertiser</ns:RoleName>
                                    </ns:Recipient>
                                </ns:Recipients>
                                <ns:Tabs>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>98</ns:XPosition>
                                        <ns:YPosition>118</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser Advertiser Name</ns:TabLabel>
                                        <ns:Value>GM</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>120</ns:XPosition>
                                        <ns:YPosition>139</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser Advertiser Name</ns:TabLabel>
                                        <ns:Value>GM</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>438</ns:XPosition>
                                        <ns:YPosition>78</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser AE/Owner</ns:TabLabel>
                                        <ns:Value>client Admin</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>116</ns:XPosition>
                                        <ns:YPosition>163</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser Address 1</ns:TabLabel>
                                        <ns:Value>123 Main Desolate road</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>60</ns:XPosition>
                                        <ns:YPosition>185</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser City</ns:TabLabel>
                                        <ns:Value>Detroit</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>87</ns:XPosition>
                                        <ns:YPosition>207</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser Main Phone</ns:TabLabel>
                                        <ns:Value>888-111-5555</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>103</ns:XPosition>
                                        <ns:YPosition>228</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Contact Email Address</ns:TabLabel>
                                        <ns:Value>youremail@gmail.com</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>210</ns:XPosition>
                                        <ns:YPosition>185</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser State</ns:TabLabel>
                                        <ns:Value>MI</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>306</ns:XPosition>
                                        <ns:YPosition>184</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser Zip/Postal Code</ns:TabLabel>
                                        <ns:Value>34098</ns:Value>
                                    </ns:Tab>
                                    <ns:Tab>
                                        <ns:DocumentID>1</ns:DocumentID>
                                        <ns:RecipientID>1</ns:RecipientID>
                                        <ns:PageNumber>1</ns:PageNumber>
                                        <ns:XPosition>240</ns:XPosition>
                                        <ns:YPosition>207</ns:YPosition>
                                        <ns:Type>Custom</ns:Type>
                                        <ns:TabLabel>Advertiser Fax</ns:TabLabel>
                                        <ns:Value>555-111-5554</ns:Value>
                                    </ns:Tab>
                                </ns:Tabs>
                            </ns:Envelope>
                        </ns:InlineTemplate>
                    </ns:InlineTemplates>
                </ns:CompositeTemplate>
            </ns:CompositeTemplates>
            <ns:ActivateEnvelope>true</ns:ActivateEnvelope>
        </ns:CreateEnvelopeFromTemplatesAndForms>
    </soap:Body>
</soap:Envelope>