你可以帮我解决下面的问题: 我正在使用演示登录。我正在尝试使用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有任何问题,请告诉我。 在帐户管理/设置默认提醒到期时的门户中,复选框&#34;不允许用户覆盖&#34;没有检查。 Expire / void Envelope也设置为2天。但是我的所有信封都是在过期设置为120天的情况下创建的。
答案 0 :(得分:1)
使用以下XML:
<notification>
<expirations>
<expireEnabled>true</expireEnabled>
<expireAfter>1</expireAfter>
<expireWarn>0</expireWarn>
</expirations>
</notification>