Get Single Report Artifact for Company

This route will return a report artifact specified by the url escaped :reportPath

Example

https://api.phinsec.io/partners/a9F2YkZ997wCkLJfD6fN/companies/mh1GkfQwW5LEXFbaTwwL/report/performance-report.pdf?year=2023&month=3&day=14&type=weekly

URL parameters are used to determine the year/month/day/frequency type and the report type is determined by the provided name.

Response Reference

When given a valid reportPath, this returns a bytestream to download the specified report.

Response Sample

The response will be a text/csv or application/pdf file, as they’re the reports which are generated by the reportGenerator.

Error Reference

Code Message Explanation
500 Failed to download file. Please try again or reach out to Phin Support for assistance Could not retrieve the report for this partner/company.