1

我正在向/v2/accounts/<account_id>/envelopes. 这是我得到的错误:

{
    "errorCode": "TAB_PAGENUMBER_IS_NOT_IN_DOCUMENT",
    "message": "The pagenumber specified in the tab element is not in the document that the tab refers to. Tab on Page 2 of Document 3 for Recipient 1"
}

通常这个请求包含一些文本选项卡和复选框选项卡,这些选项卡都没有引用任何页面。我们只为文本选项卡指定name, tabLabel& ,为复选框指定 , & 。但即使我没有发送标签数据,我也会遇到同样的错误。valuenametabLabelselected

这是请求 JSON:

{
    "allowMarkup": false,
    "allowReassign": false,
    "allowRecipientRecursion": false,
    "asynchronous": false,
    "authoritativeCopy": false,
    "autoNavigation": false,
    "brandId": "",
    "compositeTemplates": [{
        "inlineTemplates": [{
            "sequence": "2",
            "recipients": {
                "signers": [{
                    "accessCode": null,
                    "clientUserId": "123456",
                    "email": "EMAIL_1",
                    "emailNotification": null,
                    "name": "Atamert Olcgen",
                    "recipientId": "1",
                    "roleName": "Signer",
                    "tabs": {
                        "checkboxTabs": [

                        ],
                        "radioGroupTabs": [

                        ],
                        "textTabs": [

                        ]
                    }
                }]
            }
        }, {
            "sequence": "3",
            "recipients": {
                "signers": [{
                    "accessCode": null,
                    "clientUserId": "123456",
                    "email": "EMAIL_1",
                    "emailNotification": null,
                    "name": "Atamert Olcgen",
                    "recipientId": "1",
                    "roleName": "Signer",
                    "tabs": {
                        "checkboxTabs": [

                        ],
                        "radioGroupTabs": [

                        ],
                        "textTabs": [

                        ]
                    }
                }]
            }
        }],
        "serverTemplates": [{
            "sequence": "2",
            "templateId": "SECOND_TEMPLATE_ID"
        }, {
            "sequence": "3",
            "templateId": "THIRD_TEMPLATE_ID"
        }]
    }],
    "customFields": null,
    "emailBlurb": "",
    "emailSubject": "Email Subject",
    "enableWetSign": false,
    "enforceSignerVisibility": false,
    "envelopeIdStamping": false,
    "eventNotification": null,
    "signingLocation": "Online",
    "status": "sent",
    "templateId": "FIRST_TEMPLATE_ID",
    "templateRoles": [{
        "accessCode": null,
        "clientUserId": "123456",
        "email": "EMAIL_1",
        "emailNotification": null,
        "name": "Atamert Olcgen",
        "recipientId": "1",
        "roleName": "Signer",
        "tabs": {
            "checkboxTabs": [

            ],
            "radioGroupTabs": [

            ],
            "textTabs": [

            ]
        }
    }, {
        "accessCode": null,
        "clientUserId": null,
        "email": "EMAIL_2",
        "emailNotification": null,
        "name": "COMPANY_NAME",
        "recipientId": "2",
        "roleName": "COMPANY_NAME",
        "tabs": {
            "checkboxTabs": [

            ],
            "radioGroupTabs": [

            ],
            "textTabs": [

            ]
        }
    }]
}

我已经对一些字段进行了漂亮的打印和编辑,但除此之外,这与我们发送的 JSON 完全相同。

为什么即使我们没有指定任何页面,即使我们根本没有指定任何选项卡,我们也会收到关于页码的错误?

4

1 回答 1

0

在 DocuSign 平台中,有两种指定选项卡位置的方法,通过使用 x 和 y 坐标的绝对定位或通过所谓的Anchor Tagging,它根据文档内容放置选项卡。如果您正在向 uri 发出 POST 请求

/v2/accounts/<account_id>/envelopes

并且您将状态设置为Sent而不是通过将 status 设置为Created 创建草稿,那么这意味着您正在发送签名请求并且您需要为所有选项卡填写选项卡信息。这就是为什么即使您没有在请求中设置任何选项卡也会出现错误的原因。

至于为什么您会收到缺少页码错误,因为您通过设置 x 和 y 坐标来使用绝对定位,您还需要指定将它们放置在哪个页面上。如果您使用锚标记,则无需设置页码。所以基本上你可以设置你的标签的方法是这样的:

-- 绝对定位 --

"signHereTabs": [
    {
        "xPosition": "100",
        "yPosition": "100",
        "documentId": "1",
        "pageNumber": "1"
    }
]

-- 基于锚的定位 --

"signHereTabs": [
    {
        "anchorString": "Please Sign Here:",
        "anchorXOffset": "1",
        "anchorYOffset": "0.5",
        "anchorIgnoreIfNotPresent": "false",
        "anchorUnits": "inches"
    }
]
于 2013-08-28T17:21:41.977 回答