const url = 'https://api.zentail.com/v1/report/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.zentail.com/v1/report/1 \ --header 'Authorization: Bearer <token>'Retrieve report data for the supplied reportId.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”You can find the reportId in the response to posting a new Report, in a report GET response, or in the import/export UI.
Responses
Section titled “ Responses ”Success
object
If true, this is an export. Otherwise it’s an import.
Timestamp when the report was requested to be run.
Timestamp when the report was completed.
Array of the column headers in this report.
Total number of lines processed successfully.
Path to access the stored file. Use this to download an exported file when it is “COMPLETE”
Returns an error message if we ran into an error processing the report.
For imports only: If set to true, blank values supplied in the upload data will overwrite. NULL is equivalent to false.
For imports only: If set to true, if a SKU doesn’t exist in zentail we will create one. NULL is equivalent to false.
For exports only: If set to true, export will only include active products.
For imports only: If set to true, report will only fill in blank data on Zentail. Any data that already exists on Zentail will not be overwritten by data in the file.
For exports only: If set to true, export will include a header
For exports only: If set to true, will export as an Excel file.
For exports only: Use this to pass in filters to restrict the products being exported. See how to write a filter formula here.
For exports only: We will use this delimiter to separate the data in the export.
For exports only: If true, this export will only have header rows.
If this is null, then the report was created by the API.
Example
{ "isExport": false, "status": "PENDING", "overwriteWithBlank": false, "createNewProducts": false, "activeOnly": false, "insertOnly": false, "includeHeader": true, "exportForExcel": false, "delimiter": ",", "headersOnly": false}Bad Request
object
Example
{ "errorCode": 400}Permission Denied
object
Example
{ "errorCode": 403}Not Found
object
Example
{ "errorCode": 404}Zentail Error
object
Example
{ "errorCode": 500}Zentail Error
object
Example
{ "errorCode": 503}