在 DocuSign 信封中获取签名选项

问题描述 投票:0回答:1

我正在从 DocuSign 帐户向用户发送信封。在我的应用程序中,我想在邮递员中获取信封的 URL。我收到了一个 URL,但打开 URL 后,签名选项就没有出现。

我正在调用 createRecipientView 端点。

网址:https://demo.docusign.net/restapi/v2.1/accounts/{accountId}/envelopes/{envelopId}/views/recipient

在请求正文发送中: 收件人 ID、用户名、电子邮件、身份验证方法、返回网址

我收到了信封的 URL,但没有签名选项卡可以在信封上签名。

docusignapi docusignconnect docusign-sdk
1个回答
0
投票

您必须在制作信封的 API 调用中将签名选项卡添加到信封中。它是收件人对象的一部分,因为选项卡与收件人相关联。

此 JSON 可能如下所示,在本例中使用锚字符串进行定位(您也可以使用

xPosition
yPosition
进行固定定位)

{
    "emailSubject": "Please sign this document set",
    "documents": [
        {
            "documentBase64": "' > $request_data
            cat $doc1_base64 >> $request_data
            printf '",
            "name": "Order acknowledgement",
            "fileExtension": "html",
            "documentId": "1"
        },
        {
            "documentBase64": "' >> $request_data
            cat $doc2_base64 >> $request_data
            printf '",
            "name": "Battle Plan",
            "fileExtension": "docx",
            "documentId": "2"
        },
        {
            "documentBase64": "' >> $request_data
            cat $doc3_base64 >> $request_data
            printf '",
            "name": "Lorem Ipsum",
            "fileExtension": "pdf",
            "documentId": "3"
        }
    ],
    "recipients": {
        "carbonCopies": [
            {
                "email": "'"${CC_EMAIL}"'",
                "name": "'"${CC_NAME}"'",
                "recipientId": "2",
                "routingOrder": "2"
            }
        ],
        "signers": [
            {
                "email": "'"${SIGNER_EMAIL}"'",
                "name": "'"${SIGNER_NAME}"'",
                "recipientId": "1",
                "routingOrder": "1",
                "tabs": {
                    "signHereTabs": [
                        {
                            "anchorString": "**signature_1**",
                            "anchorUnits": "pixels",
                            "anchorXOffset": "20",
                            "anchorYOffset": "10"
                        },
                        {
                            "anchorString": "/sn1/",
                            "anchorUnits": "pixels",
                            "anchorXOffset": "20",
                            "anchorYOffset": "10"
                        }
                    ]
                }
            }
        ]
    },
    "status": "sent"
}
© www.soinside.com 2019 - 2024. All rights reserved.