v2

latestOpenAPI 3.0.32026-08-07222102695.9 KB
Product

Update product

patch/products/{id}

Path parameters

idstring int64 required

Request body

item_codestring nullable
namestring
serial_numberstring nullable
pricenumber
price_includes_taxboolean nullable
product_supplier_idstring int64

product supplier id

stock_levelstring decimal nullable
tax_idstring int64

tax id

cost_pricestring decimal nullable
notesstring nullable

Example request

{
  "product_supplier_id": "1",
  "tax_id": "1"
}

Response

Resource was updated

archived_atstring date-time nullable
cost_pricestring decimal nullable
created_atstring date-time
idstring int64
item_codestring nullable
namestring
notesstring nullable
price_ex_taxstring decimal nullable
price_including_taxstring decimal nullable
serial_numberstring nullable
stock_levelstring decimal nullable
updated_atstring date-time
product_supplier_idstring int64

Example response

{
  "links": {
    "self": "https://api.au1.cliniko.com/v1/products/1"
  },
  "product_supplier": {
    "links": {
      "self": "https://api.au1.cliniko.com/v1/product_suppliers/1"
    }
  },
  "stock_adjustments": {
    "links": {
      "self": "https://api.au1.cliniko.com/v1/stock_adjustments?q%5B%5D=product_id%3A%3D1"
    }
  },
  "tax": {
    "links": {
      "self": "https://api.au1.cliniko.com/v1/taxes/1"
    }
  }
}