Reports for Subaccounts
Friday, February 17, 2023 at 03:22pmWhen using
ReportService.DownloadCompletionReportAsCSV
ReportService.DownloadUsageReportAsCSV
How can I specify the subaccount and/or subaccount users that I want information returned to for reports?
Reply to: Reports for Subaccounts
Friday, February 17, 2023 at 03:46pmHi 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