Re: reports.json returns empty list

reports.json returns empty list

Hila1
Visitor
3 0 0

Hi,

I run the following link:

https://{shop name}.myshopify.com/admin/api/2022-07/reports.json, and get this:

{
    "reports": []
}
 
We have plenty of custom reports in the system:
Hila1_1-1661693643218.png

 

Scopes:
Hila1_0-1661693546303.png

 

Any help would be very appreciated!

 

Thanks

Replies 2 (2)

jon551
Shopify Staff
28 7 5

Hi Hila1,

 

Thanks for your post. The Reports API will not return reports created in the web admin which looks like where the screenshot you provided is coming from. Here are some more specific details from the [Reports REST API documentation page]:

 

"Reports are scoped to the app that created them. When an app creates a report, other apps can't view, modify, or delete that report. Also, apps can't access reports that were created from the Shopify admin."

 

Hope you have a great day,

Jon551 | API Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Hila1
Visitor
3 0 0

Hi,

 

Thanks for the quick response!!

 

I was wondering if it's possible to get the QL statement for a report without using an API, since it's a one time thing that should be extracted.

 

Thanks,

 

Hila