Skip to content
On this page

Evidence/Audit-Related Sample Code

GetTransactionEvidencePackages()

csharp
var req = new TransactionEvidencePackageRequestModel()
{
    IDs new List<object> {1234567890 },
    Includes: new EvidencePackageIncludesModel() {
        IncludeAuditReport: true, // Audit Report PDF bytes
        IncludeDocuments: true, // Document file bytes
        IncludeTransactionEventHistory: true // timeline collection of events
    }
}

var api = new TransactionsApi(myRestEndpointUrl);
var results = api.GetTransactionEvidencePackages(req, apiKey, apiSecret, apiUsername, apiPassword);
if (results.IsSuccessful.Value)
{
    //do work...
}
else
{
    //handle error
}

GetAuditReports()

csharp
var req = new AuditReportDetailsRequestModel()
{
    IDs = new List<object> { 1000434922 },
    AuditReportType = DocumentAuditReportTypes.Xml  //Pdf or XML formats are supported
};

var api = new AuditReportsApi(myRestEndpointUrl);
var results = api.GetAuditReports(req, apiKey, apiSecret, apiUsername, apiPassword);
if (results.IsSuccessful.Value)
{
    //do work...
}
else
{
    //handle error
}

VerifyCompletedDocumentsAuthenticity()

csharp
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.VerifyCompletedDocumentsAuthenticity(req, apiKey, apiSecret, apiUsername, apiPassword);
if (results.IsSuccessful.Value)
{
    //do work...
}
else
{
    //handle error
}