Sertifi API Web Service
Method/testsite/Services/Gateway.asmx/GetDocumentsStatus
Description
Get xml data related to documents of a certain status within a specified date range.
Request (GetDocumentsStatusSoapIn)

The request body is of type GetDocumentsStatus.

Request Body Parameters

NameDescriptionData Type
pstr_APICodeThe API code of the site.  This can be found through your Sertifi web interface under Administration -> Account Settings.xml:string
pstr_StartDateThe date to start the search.xml:string
pstr_EndDateThe date to end the search.xml:string
pstr_StatusThe status of the documents searched for.xml:string
pstr_SignersA comma, space, or semicolon seperated list of email addresses related to the documents searched for.xml:string
pstr_Signers Element pstr_Status Element pstr_EndDate Element pstr_StartDate Element pstr_APICode Element Sequence GetDocumentsStatus Element
Response (GetDocumentsStatusSoapOut)

The response body is of type GetDocumentsStatusResponse.

Response Body Parameters

NameDescriptionData Type
GetDocumentsStatusResultxml data or error message.xml:string
GetDocumentsStatusResult Element Sequence GetDocumentsStatusResponse Element
Example

Sample Call:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ser="http://apps.sertifi.net/services/">
   <soap:Header/>
   <soap:Body>
      <ser:GetDocumentsStatus>
         <ser:pstr_APICode>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</ser:pstr_APICode>
         <ser:pstr_StartDate>2014/5/1</ser:pstr_StartDate>
         <ser:pstr_EndDate>2014/5/25</ser:pstr_EndDate>
         <ser:pstr_Status>signed</ser:pstr_Status>
         <!--Optional:-->
         <ser:pstr_Signers></ser:pstr_Signers>
      </ser:GetDocumentsStatus>
   </soap:Body>
</soap:Envelope>

Sample Response:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetDocumentsStatusResponse xmlns="http://apps.sertifi.net/services/">
         <GetDocumentsStatusResult><![CDATA[<?xml version="1.0" encoding="utf-16"?>
<CurrentStatus>
  <StartDate>2014/5/1</StartDate>
  <EndDate>2014/5/25</EndDate>
  <Document>
    <FileID>6ohWqLSG424=</FileID>
    <DocumentID>TieMLwLwLpE=</DocumentID>
    <Name>checkboxes!</Name>
    <Status>Signed</Status>
    <DateCreated>5/20/2014 2:40:58 PM</DateCreated>
    <DateSigned>5/20/2014 2:43:41 PM</DateSigned>
  </Document>
  <Document>
    <FileID>4k2374h5ilU=</FileID>
    <DocumentID>wOQ8EjI0Zj4=</DocumentID>
    <Name>checkboxes!</Name>
    <Status>Signed</Status>
    <DateCreated>5/1/2014 1:10:31 PM</DateCreated>
    <DateSigned>5/1/2014 1:25:49 PM</DateSigned>
  </Document>
</CurrentStatus>]]></GetDocumentsStatusResult>
      </GetDocumentsStatusResponse>
   </soap:Body>
</soap:Envelope>

Remarks

Common Errors include:
"ERROR: Invalid API Code"
"ERROR: pstr_StartDate is invalid."
"ERROR: pstr_EndDate is invalid."
"ERROR: Status cant be empty or null."
"ERROR: pstr_Status is invalid."
"ERROR: pstr_Signers is invalid: ..."

Document statuses:
Unsigned
Signed
Converting to Pdf
Partially signed
Signed and archived
Declined
Expired
Conversion Failed
Undefined (Could mean 'a fax is Awaiting Verification' or 'document is signed but signer revoked it as not a valid signature')

See Also
All Operations Resource GroupSertifi API Web Service

 

 


© Sertifi, Inc., 2019 All Rights Reserved.

Send comments on this topic.