嵌入式签名(REST API PHP) [英] Embedded Signing (REST API PHP)

查看:145
本文介绍了嵌入式签名(REST API PHP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用嵌入式签名视图(REST API PHP)时,是否仍然可以自动填充用户详细信息。

Is there anyway to auto poplate the user details when using embedded signing view (REST API PHP).

实际上,我们在应用程序中使用的是嵌入式签名视图rest api 。当他要对文档进行签名时,我们需要在签名文档中自动填充用户地址详细信息。

Actually we are using embedded signing view rest api in our application. We need to auto populate user address details in the sign document when he is going to sign the docuement.

我们在文档中具有以下字段。

We have the following fields in the document.

为姓名,姓氏,电子邮件,地址1,地址2,城市,州,国家/地区,邮政编码等提供别名。

Firts name, last name, email, address1, address2, city, state, country, postal code and etc..

我们需要使用用户详细信息填充以上所有字段。在嵌入式签名视图(REST API PHP)中是否可行。

We need to populate all the above fields with user details. Is this possible in embedded signing view (REST API PHP).

如果可能,请向我发送引用链接为视频。

If possible send me refernce links are videos. Please help me on this.

提前谢谢。

谢谢,
Srinivas Reddy.A

Thanks, Srinivas Reddy.A

推荐答案

是的,您绝对可以在嵌入式签名视图中填充选项卡。这全部通过

Yes you can definitely populate tabs in an embedded signing view. This is all controlled through the

tabLabel 

请求正文中每个标签的属性。例如,如果您登录DocuSign控制台并将两个数据字段(textTabs)添加到信封,其中一个带有标签 email,另一个带有 address标签,则以下JSON正文会根据值传递。我刚刚对其进行了测试,并且可以正常工作:

property of each tab in your request body. For instance, if you login to the DocuSign Console and add two data fields (textTabs) to your envelope where one has the label "email" and the other has a label of "address" then the following JSON body prefills those tabs based on the value passed. I just tested this and it works:

{
"accountId": "123456",
"emailSubject": "DocuSign API - Embedded Signing w/ Populated Values Example",
"emailBlurb": "Email body goes here",
"templateId": "9347C7AF-7EEE-.................................",
"templateRoles": [
    {
        "email": "sample@email.com",
        "name": "John Doe",
        "roleName": "Signer1",
        "clientUserId": "1001",
        "tabs": {
            "textTabs": [
                {
                    "tabLabel": "address",
                    "value": "123 Main St. SF, CA"
                },
                {
                    "tabLabel": "email",
                    "value": "sample@email.com"
                }
            ]
        }
    }
],
"status": "sent"
}

所有您需要做的就是添加剩余的标签(例如,城市,州, zip等),您就可以开始了。只需确保将JSON中的tabLabel与通过控制台添加时为每个标签提供的标签相匹配即可。

All you have to do is add your remaining tabs (i.e. city, state, zip, etc) and you're good to go. Just make sure you match the tabLabel in your JSON with the Label that you give each tab when adding through the Console.

这篇关于嵌入式签名(REST API PHP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆