[英]DocuSign API - Creating an envelope with a textCustomField
我正在嘗試通過DocuSign API使用textCustomField創建一個信封草稿,但我無法使其正常工作,懷疑它是Request中的textCustomField標簽的位置-並需要一些幫助來指導我。 這是當前的請求XML:
<ns1:envelopeDefinition xmlns:ns1="http://www.docusign.com/restapi">
<ns1:emailSubject>Test</ns1:emailSubject>
<ns1:status>created</ns1:status>
<ns1:documents>
<ns1:document>
<ns1:name>TestDocument</ns1:name>
<ns1:documentId>1</ns1:documentId>
<ns1:documentBase64>U09XIElE==</ns1:documentBase64>
<ns1:fileExtension>txt</ns1:fileExtension>
</ns1:document>
</ns1:documents>
<ns1:recipients>
<ns1:signers>
<ns1:signer>
<ns1:routingOrder>1</ns1:routingOrder>
<ns1:recipientId>1</ns1:recipientId>
<ns1:name>John Smith</ns1:name>
<ns1:email>nobody@nobody.com</ns1:email>
<ns1:tabs>
<ns1:approveTabs>
<ns1:approve>
<documentId>1</documentId>
<pageNumber>1</pageNumber>
<xPosition>70</xPosition>
<yPosition>120</yPosition>
<height>30</height>
<width>50</width>
</ns1:approve>
</ns1:approveTabs>
<ns1:declineTabs>
<ns1:decline>
<documentId>1</documentId>
<pageNumber>1</pageNumber>
<xPosition>130</xPosition>
<yPosition>120</yPosition>
<height>30</height>
<width>50</width>
</ns1:decline>
</ns1:declineTabs>
</ns1:tabs>
<ns1:customFields>
<ns1:textCustomFields>
<ns1:textCustomField>
<ns1:configurationType />
<ns1:fieldId>1</ns1:fieldId>
<ns1:name>ID</ns1:name>
<ns1:required>true</ns1:required>
<ns1:show>false</ns1:show>
<ns1:value>12345</ns1:value>
</ns1:textCustomField>
</ns1:textCustomFields>
</ns1:customFields>
</ns1:signer>
</ns1:signers>
</ns1:recipients>
</ns1:envelopeDefinition>
謝謝!
我將其與以下Request主體一起使用。 解決方法是將CustomFields從“ recipients”標簽移出,並將其作為“ recipients”標簽的兄弟。
<ns1:envelopeDefinition xmlns:ns1="http://www.docusign.com/restapi">
<ns1:emailSubject>Test</ns1:emailSubject>
<ns1:status>created</ns1:status>
<ns1:documents>
<ns1:document>
<ns1:name>TestDocument</ns1:name>
<ns1:documentId>1</ns1:documentId>
<ns1:documentBase64>U09XIElE==</ns1:documentBase64>
<ns1:fileExtension>txt</ns1:fileExtension>
</ns1:document>
</ns1:documents>
<ns1:recipients>
<ns1:signers>
<ns1:signer>
<ns1:routingOrder>1</ns1:routingOrder>
<ns1:recipientId>1</ns1:recipientId>
<ns1:name>John Smith</ns1:name>
<ns1:email>nobody@nobody.com</ns1:email>
<ns1:tabs>
<ns1:approveTabs>
<ns1:approve>
<documentId>1</documentId>
<pageNumber>1</pageNumber>
<xPosition>70</xPosition>
<yPosition>120</yPosition>
<height>30</height>
<width>50</width>
</ns1:approve>
</ns1:approveTabs>
<ns1:declineTabs>
<ns1:decline>
<documentId>1</documentId>
<pageNumber>1</pageNumber>
<xPosition>130</xPosition>
<yPosition>120</yPosition>
<height>30</height>
<width>50</width>
</ns1:decline>
</ns1:declineTabs>
</ns1:tabs>
</ns1:signer>
</ns1:signers>
</ns1:recipients>
<ns1:customFields>
<ns1:textCustomFields>
<ns1:textCustomField>
<ns1:configurationType />
<ns1:fieldId>1</ns1:fieldId>
<ns1:name>ID</ns1:name>
<ns1:required>true</ns1:required>
<ns1:show>false</ns1:show>
<ns1:value>12345</ns1:value>
</ns1:textCustomField>
</ns1:textCustomFields>
</ns1:customFields>
</ns1:envelopeDefinition>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.