Any guidance or an example of exactly what I need to do to return the information below would be great. I'm using js, jquery & HTML
- I need to add this: Content-Type header is application/json
- When the request comes I need to reply with the Json below
https://docs.snipcart.com/configuration/json-crawler#validating-the-request
When Snipcart makes the request to the URL, if your response Content-Type header is application/json, we'll use our JSON validator instead of the HTML one.
You must return us a JSON having the following properties.
{
"id": "20",
"price": 50.00,
"url": "https://snipcart.com/products/1.json"
}