2014-10-06 69 views
0

有沒有辦法將數據值輸入到DocuSign文檔自定義字段中,並返回到文檔中?我們正在使用DocuSign的SOAP API接口,並將發送文檔和XML,請求接收者/簽名者將數據輸入到字段中(數據輸入,複選框,單選按鈕等)。返回DocuSign客戶數據字段值

從我們的研究中可以看出DocuSign將文檔和數據作爲PDF格式返回,但我們還希望將數據從DocuSign的XML響應中發回。

似乎還有一個名爲「GetEnvelopeCustomField」的DocuSign調用來檢索這些數據,但我們不確定這個調用是如何工作的。似乎無法找到有關通話的很多信息。

如果有人已經這樣做或有任何建議,我將不勝感激任何反饋。

謝謝!

回答

0

是的,在SOAP和REST中都有API調用。在SOAP中,只需撥打RequestEnvelope,這將返回關於信封的所有信息,包括文檔,收件人和標籤。例如,回來響應的一部分將包含這樣的事情:

<Tabs> 
     <Tab> 
     <DocumentID>positiveInteger</DocumentID> 
     <RecipientID>positiveInteger</RecipientID> 
     <PageNumber>nonNegativeInteger</PageNumber> 
     <XPosition>nonNegativeInteger</XPosition> 
     <YPosition>nonNegativeInteger</YPosition> 
     <ScaleValue>decimal</ScaleValue> 
     <AnchorTabItem xsi:nil="true" /> 
     <Type>InitialHere or SignHere or FullName or FirstName or LastName or EmailAddress or Company or Title or DateSigned or InitialHereOptional or EnvelopeID or Custom or SignerAttachment or SignHereOptional or Approve or Decline or SignerAttachmentOptional</Type> 
     <Name>string</Name> 
     <TabLabel>string</TabLabel> 

     <Value>string</Value> 

     <CustomTabType>Text or Checkbox or Radio or List or Date or Number or SSN or ZIP5 or ZIP5DASH4 or Email or Note or Formula</CustomTabType> 
     <CustomTabWidth>int</CustomTabWidth> 
     <CustomTabHeight>int</CustomTabHeight> 
     <CustomTabRequired>boolean</CustomTabRequired> 
     <CustomTabLocked>boolean</CustomTabLocked> 
     <CustomTabDisableAutoSize>boolean</CustomTabDisableAutoSize> 
     <CustomTabListItems>string</CustomTabListItems> 
     <CustomTabListValues>string</CustomTabListValues> 
     <CustomTabListSelectedValue>string</CustomTabListSelectedValue> 
     <CustomTabRadioGroupName>string</CustomTabRadioGroupName> 
     <CustomTabValidationPattern>string</CustomTabValidationPattern> 
     <CustomTabValidationMessage>string</CustomTabValidationMessage> 
     <TemplateLocked>boolean</TemplateLocked> 
     <TemplateRequired>boolean</TemplateRequired> 
     <ConditionalParentLabel>string</ConditionalParentLabel> 
     <ConditionalParentValue>string</ConditionalParentValue> 
     <SharedTab>boolean</SharedTab> 
     <RequireInitialOnSharedTabChange>boolean</RequireInitialOnSharedTabChange> 
     <ConcealValueOnDocument>boolean</ConcealValueOnDocument> 
     <Font>Arial or ArialNarrow or Calibri or CourierNew or Garamond or Georgia or Helvetica or LucidaConsole or Tahoma or TimesNewRoman or Trebuchet or Verdana</Font> 
     <Bold>boolean</Bold> 
     <Italic>boolean</Italic> 
     <Underline>boolean</Underline> 
     <FontColor>Black or BrightBlue or BrightRed or DarkRed or DarkGreen or Gold or Green or NavyBlue or Purple or White</FontColor> 
     <FontSize>Size7 or Size8 or Size9 or Size10 or Size11 or Size12 or Size14 or Size16 or Size18 or Size20 or Size22 or Size24 or Size26 or Size28 or Size36 or Size48 or Size72</FontSize> 
     <MergeFieldXml>string</MergeFieldXml> 
     <IncludeNoteInEmail>boolean</IncludeNoteInEmail> 
     <IsPaymentAmount>boolean</IsPaymentAmount> 
     <Formula>string</Formula> 
     <RoundDecimalPlaces>int</RoundDecimalPlaces> 
     <MaxLength>int</MaxLength> 
     <SenderRequired>boolean</SenderRequired> 
     </Tab> 
    </Tabs> 

你只需要解析XML和檢索值爲準你感興趣下面是RequestEnvelope調用的模式:

https://demo.docusign.net/api/3.0/api.asmx?op=RequestEnvelope