Unable to get json response , getting only HTML response

joseerengan
Visitor
1 0 0

Hi,

 

We are trying to fetch orders from shopify. So we are calling admin API we are getting success status but we are getting Html responses. But we are expecting a JSON response. How can I get JSON response?

Following the way, we are requesting.

 

https://{apikey}:{password}@{hostname}/admin/api/{version}/orders.json

 

 

 

 

Reply 1 (1)

csam
Shopify Staff (Retired)
267 40 51

Hi @joseerengan 

 

Could you please provide an example HTML response that you're receiving? Without knowing anything else, I would also recommend clearing all cookies from the application that you are using to make the API request. 

 

 

To learn more visit the Shopify Help Center or the Community Blog.