簡體   English   中英

Docusign SDK - 為什么在創建 SignHere 標簽時會忽略 document_id?

[英]Docusign SDK - Why document_id are ignored when creating a SignHere tag?

我使用 docusign-esign SDK for Python,版本 3.3.0。

假設我在同一個信封里有兩個不同的文件,並且同一個簽字人必須同時簽署它們。

我聲明以下實體,這是我的代碼的簡化版本:


documents = await build_docusign_documents() # A list of instances that modelise my documents that needs be signed on Docusign
john = database.users.get_john() # My user model instance.

signer = InPersonSigner(
            signer_email=john.mail,
            signer_name=f"{john.first_name} {john.last_name}",
            recipient_id=1,
            routing_order=1,
            host_name=f"{representative.first_name} {representative.last_name}",
            host_email=representative.mail,
            tabs=Tabs(sign_here_tabs=[], date_signed_tabs=[]),
        )


tabs = [
    SignHere(
        recipient_id=1,
        document_id=document.id,
        tab_label="SignHereTab",
        anchor_string="DS_USER_SIGNING",
    )
    for document in documents
]

signer.tabs = Tabs(sign_here_tabs=tabs)


代碼片段 abose 應該在兩個不同的文檔上聲明兩個“在此處簽名”選項卡。
Docusign 界面中發生的事情完全不同,兩個選項卡都是重復的。 (2 包 2 個重疊標簽)
這意味着兩個SignHere情況下被觸發由兩個文件anchor_tag ,無論在document_id提供的。
為了解決這個問題,我刪除了document_id鍵,並且只為用戶聲明了一個SignHere選項卡,而不管需要多少選項卡。
這不是我從文檔中理解的: https : //developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/

添加帶有錨標記的選項卡時,DocuSign 會在文檔中搜索您提供的 anchorString 屬性的實例。 對於每個找到的實例,它會為指定的收件人放置一個指定類型的選項卡。 可以通過提供 x 和 y 偏移量來設置與字符串實例相關的選項卡位置。

文檔說掃描是針對整個文檔而不是整個信封執行的。

它有效,但我不明白為什么,我對此感到不舒服。

謝謝

您的帳戶有一個“錨點人口范圍”的全局設置,用於確定錨點標簽的范圍。 它可以用於特定文檔,也可以用於整個信封。 你的必須以另一種方式設置。 不幸的是,更改此設置需要您聯系 DocuSign 支持。 此設置適用於您的所有信封,因此您需要確定是否需要更改它,如果需要,請訪問 support.docusign.com 提出請求

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM