WinShopAPI docs
ReferenceProduct

Run a custom product statistic

Runs the custom statistic registered under `routeName` for this product and returns its rows. Which routes exist is instance-specific, configured in the database rather than in this API; 404 when `routeName` is not one of them. Requires `Permissions.Product.View`.

GET
/api/products/{productId}/stats/custom/{routeName}

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

productId*integer
Formatint32
routeName*string

Response Body

application/json
  1. response
[index: integer]?unknown
curl -X GET 'https://<your-instance>/api/products/0/stats/custom/string' \  -H 'Authorization: Bearer <access-token>'
[  null]