Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

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.