Verifying Signed Documents
There are times when it is necessary to perform document file verification (digital signature check) on a copy of a document that was signed using AlphaTrust® e-Sign, but which is not stored in the AlphaTrust® e-Sign document repository. For documents that are in the repository, you may use following API call:
var req = new DocumentVerifyRequestModel()
{
DocumentFiles = new List<object>
{
new DocumentVerifyModel()
{
ID = 1234567890,
FileBytes = File.ReadAllBytes(@"c:\MyCompletedDocumentToVerify.pdf")
}
}
};
var api = new DocumentsApi(myRestEndpointUrl);
var results = api.VerifyCompletedDocuments(req, apiKey, apiSecret, apiUsername, apiPassword);
if (results.IsSuccessful.Value)
{
// do work...
}
else
{
// handle error
}
Retrieving Your Documents
Once all participants have successfully signed your document, you may want to retrieve this document to be saved in your own document repository server. To do this, you will use the GetDocumentFiles() API method. The main parameter in this method is the DocumentFileDetailsRequestModel. For more details, reference the API Reference documentation.
Document Retention and Deletion
By default, documents are retained within AlphaTrust® e-Sign. There are several ways to control document deletion.