2017-06-06 73 views
1

我正嘗試使用DocuSign開發人員沙箱帳戶通過DocuSign API Explorer爲文檔和收件人創建草稿信封。DocuSign API Explorer - 使用文檔和收件人創建草稿信封

儘管有SUCCESS響應,但實際信封並不包含請求中包含的文檔或接收者。我哪裏錯了?

下面是請求XML:

<envelopeDefinition 
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="http://www.docusign.com/restapi"> 
    <documents> 
     <documentBase64>&lt;Base64BytesHere&gt;</documentBase64> 
    </documents> 
    <emailSubject>Test from API Explorer</emailSubject> 
    <recipients> 
     <signers> 
      <email>[email protected]</email> 
      <name>John Smith</name> 
     </signers> 
    </recipients> 
    <status>created</status> 
</envelopeDefinition> 

Here is the empty envelope screenshot

回答

2

您缺少文檔和收件人對象的一些參數,比如你需要添加一個documentIddocumentName在另外的文件到文檔字節。

這裏有一個完整的XML請求應該是什麼樣子:

<envelopeDefinition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi"> 
    <emailSubject>Test Subject</emailSubject> 
    <documents> 
     <document> 
     <name>document.pdf</name> 
     <documentId>1</documentId> 
     <documentBase64>&lt;Base64BytesHere&gt;</documentBase64> 
     </document> 
    </documents> 
    <recipients> 
     <signers> 
      <tabs> 
       <signHereTabs> 
        <signHereTab> 
        <pageNumber>1</pageNumber> 
        <documentId>1</documentId> 
        <xPosition>100</xPosition> 
        <yPosition>100</yPosition> 
        </signHereTab> 
       </signHereTabs> 
      </tabs> 
      <routingOrder>1</routingOrder> 
      <recipientId>1</recipientId> 
      <name>My Name</name> 
      <email>[email protected]</email> 
     </signers> 
    </recipients> 
    <status>created</status> 
</envelopeDefinition> 
+0

由於埃爾金,我用你的XML和我的文檔附加,但仍然沒有接收者,也不對文件的SignHere領域。 不確定它是否重要,但我的源文檔是TXT。 –

+0

忽略關於收件人的部分,我在請求的收件人周圍添加了,現在有收件人。 仍在SingHere領域苦苦掙扎.... –

相關問題