0

你能帮我解决以下问题吗:我正在使用演示登录。我正在尝试使用 java 发送签名文档。我需要将信封上的有效期设置为 1 天。我尝试在下面使用,但它没有在我的信封上设置过期时间。

<envelopeDefinition xmlns="http://www.docusign.com/restapi">
<emailSubject>Contract for Signature</emailSubject>
<status>sent</status>
<notification>
    <expirations>
        <expiration>
            <expirationEnabled>true</expirationEnabled>
            <expirationAfter>1</expirationAfter>
            <expirationWarn>1</expirationWarn>
        </expiration>
    </expirations>
</notification>
<documents>
    <document>
        <name>  documentName  </name>
        <documentId>1</documentId>
        <order>1</order>
    </document>
</documents>
<recipients>
    <signers>
        <signer>
            <email>  custEmail  </email>
            <name> recipientNameCust  </name>
            <recipientId>1</recipientId>
            <routingOrder>1</routingOrder>
            <tabs>
                <signHereTabs>
                    <signHere>
                        <anchorString>SIGNED on behalf of the Customer</anchorString>
                        <anchorXOffset>10</anchorXOffset>
                        <anchorYOffset>50</anchorYOffset>
                        <anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
                        <anchorUnits>Pixels</anchorUnits>
                        <documentId>1</documentId>
                        <recipientId>1</recipientId>
                        <tabLabel>Sign Here1</tabLabel>
                        <name>SignHere1</name>
                    </signHere>
                </signHereTabs>
            </tabs>
        </signer>
        <signer>
            <email>  receipientEmail  </email>
            <name>  recipientNameTotal  </name>
            <recipientId>2</recipientId>
            <routingOrder>2</routingOrder>
            <tabs>
                <signHereTabs>
                    <signHere>
                        <anchorString>SIGNED on behalf of Total</anchorString>
                        <anchorXOffset>10</anchorXOffset>
                        <anchorYOffset>50</anchorYOffset>
                        <anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
                        <anchorUnits>Pixels</anchorUnits>
                        <documentId>1</documentId>
                        <recipientId>2</recipientId>
                        <tabLabel>Sign Here2</tabLabel>
                        <name>SignHere2</name>
                    </signHere>
                </signHereTabs>
            </tabs>
        </signer>
    </signers>
</recipients>

api文档将标签称为-expireEnabled而不是expirationEnabled,expireAfter而不是expirationAfter,expireWarn而不是expirationWarn。所以我也尝试了这些标签,但它仍然没有用。如果上面的xml有什么问题,请告诉我。在帐户管理/设置默认提醒到期下的门户中,未选中“不允许用户覆盖”复选框。过期/无效信封也设置为 2 天。但是我所有的信封都是用过期设置为 120 天创建的。

4

1 回答 1

2

使用以下 XML:

<notification>
   <expirations>
      <expireEnabled>true</expireEnabled>
      <expireAfter>1</expireAfter>
      <expireWarn>0</expireWarn>
   </expirations>
</notification>
于 2014-03-20T23:15:45.963 回答