WinShopAPI docs
ReferenceProduct

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`.

GET
/api/products/{productId}/repricing

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

Query Parameters

validFromStart?|
Formatdate-time
validFromEnd?|
Formatdate-time

Response Body

application/json
  1. 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  }]