c) Sign documents

For creating or editing documents in webSignatureOffice via Tyrservice you need to call following methods:

 

  • Upload documents

Method call: "processXml"

Parameters: string sessionId, XML file with included base64 encoded PDF

Return values: int documentID

 

  • Get document status

Method call: "getDocumentSignatureRequestStatus"

Parameters: string session_id, int document_id

Return values: int signatureRequestStatusId

 

Status overview:

1 = new 2 = partial signed 3 = finished 4 = failed

 

  • Delete documents

Method call: "deleteDocument"

Parameters: string session_id, int document_id, string username

Return values: boolean ("true" for success, "false" for failure)

 

  • Retrieve documents

Method call: "retrieveXml"

Parameters: string sessionId, int documentId, boolean deleteAfter

Return values: XML file with included base64 encoded PDF