v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Product

View purchase prices

Returns a list of given Products' PurchasePrices

get/api/v1/products/{id}/purchasePrices

Path parameters

idstring required

Resource identifier.

Example:17

The resource's identifier.

Query parameters

numberstring required

Page number should be an integer greater than or equal to 1

sizestring required

Page size should usually be an integer between 10 and 50.

field'id' | 'amount' | 'priceAmount' | 'supplier' | 'supplierName'
dir'asc' | 'desc'

Response

Success

Example response

{
  "data": [
    {
      "id": "17",
      "amount": 10,
      "supplier": {
        "id": "1337",
        "name": "Diamond"
      },
      "price": {
        "amount": "13.37",
        "currency": "EUR"
      },
      "additionalInformation": {
        "supplierAvailableStock": 10000,
        "supplierAvailableStockDate": "2024-06-30",
        "safetyStock": 5000,
        "standardDeliveryTime": 3,
        "standardDeliveryTimeUnit": "days",
        "currentDeliveryTime": 2,
        "currentDeliveryTimeUnit": "weeks"
      }
    }
  ],
  "extra": {
    "page": {
      "number": 1,
      "size": 10
    }
  }
}