Getting Failed to get response from host error on checkout

Hi there,
I am using snipcart on my nextjs project and for order validation I am using JSON response using nextjs api.

My json response is like this.

{
“id”: 3,
“price”: 123
}

and use this api response in the (data-item-url) attribute so in the checkout snipcart can go to this route and validate the order id and price.

but in the checkout I am getting this error

I am not sure what I am doing wrong here. If anyone can help that will be super appreciated. Thank you.

Hey @manjiljunior

As stated in our doc id, price and url are mandatory fields.

Hope this helps!
Cheers,