From the Recommendations API docs, I see that I can get the product recommendations back in two formats depending on the query parameters
- product_id with no section_id returns JSON
- product_id with section_id returns HTML
I’m having trouble with the JSON response format – I receive an error response telling me that the section_id parameter is missing
Without section_id
Query:
https://mill-and-commons.myshopify.com/recommendations/products?product_id=6212544266414&limit=4
Response:
The HTML response comes as expected
With section_id
Query:
Response:

