List a product's repricings
Returns the repricing rows recorded for this product, optionally narrowed to those effective between `validFromStart` and `validFromEnd`. See the *ProductRepricing* endpoints to create one. Requires `Permissions.Product.View`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
productId*integerint32validFromStart?|date-timevalidFromEnd?|date-timeapplication/json- response
[index: integer]?curl -X GET 'https://<your-instance>/api/products/0/repricing' \ -H 'Authorization: Bearer <access-token>'[ { "batchId": 0, "colorId": 0, "date": "2019-08-24T14:15:22Z", "dimensionId": 0, "documentInternalNumber": 0, "documentType": "string", "id": 0, "internalNumber": 0, "isDone": true, "isLast": true, "lengthId": 0, "newPrice": 0, "newPriceWoVat": 0, "originalPrice": 0, "originalPriceWoVat": 0, "priceId": 0, "productId": 0, "quantity": 0, "rowNumber": 0, "setPrice": 0, "sizeId": 0, "stockPrice": 0, "userId": 0, "validFrom": "2019-08-24T14:15:22Z", "validTo": "2019-08-24T14:15:22Z", "variantId": 0, "vatRate": 0 }]Get a purchase price from a supplier GET
Returns the purchase price agreed with `supplierId` that is valid on `priceDate`. Requires `Permissions.Product.View`.
Run a custom product statistic GET
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`.