demellor | Posts: 46

Reports for Subaccounts

0 votes

When using

ReportService.DownloadCompletionReportAsCSV

 ReportService.DownloadUsageReportAsCSV

 

How can I specify the subaccount and/or subaccount users that I want information returned to for reports?


Approved Answer
Duo_Liang | Posts: 3776

Reply to: Reports for Subaccounts

0 votes

Hi Richard,

 

API users have different API keys for different subaccounts. You can retrieve the list of API Keys via this function:
AccountService.class > public IList<SubAccountApiKey> getSubAccountApiKey()

Each subaccount's API key is used to access the resources in the current subaccount, including to download completion and usage report.

 

For completion report, you can specify a particular sender ID:

public string DownloadCompletionReportAsCSV(OneSpanSign.Sdk.DocumentPackageStatus packageStatus, String senderId, DateTime from, DateTime to)

However, the usage report doesn't have the sender ID parameter according to its API schema.

 

Duo

 


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off