Error in creating a total sales report via Rest API - Status 400 Bad Request

Solved

Error in creating a total sales report via Rest API - Status 400 Bad Request

summer_int_dev
Shopify Partner
2 0 0

Hi Guys, 
So I was trying to create a new report with Postman via the rest api endpoint https://{{api_key}}:{{api_password}}@{{store_name}}.myshopify.com/admin/api/{{api_version}}/reports/{{report_id}}.json

I put in the required parameters which are name, and shopify_ql in the body please see image for reference.

summer_int_dev_0-1674005135078.png


so my question is, is it possible to create a sales report via rest api if my store is not subscribed to a plan?
I hope someone can clear this up to me, because my test store is not subscribed in a plan.

Accepted Solution (1)

Jason
Shopify Partner
11207 226 2318

This is an accepted solution.

There's a note about the plan requirements at the very top of the api docs.
https://shopify.dev/api/admin-rest/2023-01/resources/report

 

But what's more likely is the request itself since you are getting a reply. What is the request you're making?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★

View solution in original post

Replies 2 (2)

Jason
Shopify Partner
11207 226 2318

This is an accepted solution.

There's a note about the plan requirements at the very top of the api docs.
https://shopify.dev/api/admin-rest/2023-01/resources/report

 

But what's more likely is the request itself since you are getting a reply. What is the request you're making?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
summer_int_dev
Shopify Partner
2 0 0

I am actually trying to create a sales report via the reports api. Seems like the note just answered my question. Thank you!