v2

latestSwagger 2.02026-08-01139174369.1 KB
Products

Updates an existing Product.

put/v1/products/{id}

Path parameters

idinteger required

Id of Product to update.

Request body

idinteger
unitPricenumber double
stockCodestring
grossUnitPriceboolean
hasDefaultVatRateboolean
vatRateIdinteger
timestampstring byte
detailsstring[]
vatAnalysisTypeIdinteger
productTypeIdinteger

Example request

{
  "id": 9,
  "unitPrice": 100,
  "stockCode": "PRO1",
  "grossUnitPrice": false,
  "hasDefaultVatRate": false,
  "timestamp": "UPpH5vbv3gg=",
  "details": [
    "det1",
    "det2",
    "det3"
  ],
  "vatAnalysisTypeId": 1,
  "productTypeId": 0
}

Response

OK

object required