According to the documentation on API: orders – Snipcart Documentation the following API request should return the first 50 orders for my product with id = 8
.
$ curl -v -H "Accept: application/json" -u secret: "https://app.snipcart.com/api/orders?productId=8&offset=0&limit=50"
If I omit productId
it works fine, but with productId
I get HTTP/2 500:
< HTTP/2 500
< cache-control: private
< content-length: 36
< content-type: application/json; charset=utf-8
< request-context: appId=cid-v1:48f65c7b-986c-4ec3-89de-eb0160f55639
< access-control-expose-headers: Request-Context
< date: Fri, 15 Oct 2021 13:11:52 GMT
<
{ [36 bytes data]
100 36 100 36 0 0 52 0 --:--:-- --:--:-- --:--:-- 52
* Connection #0 to host app.snipcart.com left intact
{
"message": "An error has occurred."
}