Update a product
Update details of a specific product identified by its unique product ID, and receive the updated details in return.
Path parameters
- 
    
  A unique identifier for the product within 24SevenOffice ERP-modules. Minimum value is 1.
Body
Request Body for updating an existing product
- 
    
  The name of the product. Maximum length is 150.
- 
    
  The alternative user-defined product number. Maximum length is 100.
- 
    
  Specifies whether the product is defined as a regular or structure product. Values are defaultorstructure. Default value isdefault.
- 
    
  Specifies whether the product's status is active or inactive (expired). Values are activeorinactive. Default value isactive.
- 
    
  The description of the product. Maximum length is 500.
- 
    
  The cost of buying the product from the supplier. Default value is 0.
- 
    
  The selling price of the product. Default value is 0.
- 
    
  The sum of indirect costs related to the product. Default value is 0.
- 
    
  Stock information for the product. 
- 
    
  The product's 13-digit European Article Number (EAN). Maximum length is 13.
- 
    
  An alternative article number field, supporting up to 25 digits. Maximum length is 25.
- 
    
  Collection of properties related to the supplier's product. 
- 
    
  Information about the units of measurement for the product. 
- 
    
  Information about the category to which the product belongs. 
- 
    
  Information about the supplier of the product. 
curl \
 --request PATCH 'https://rest.api.24sevenoffice.com/v1/products/123' \
 --header "Content-Type: application/json" \
 --header "Authorization: string" \
 --data '{"name":"White shoe laces","number":"SH-1234567","type":"default","status":"active","description":"1 meter long shoe laces - white","costPrice":50,"salesPrice":400,"indirectCost":12.77,"stock":{"isManaged":true,"quantity":146,"location":"A-313"},"ean":"0123456789000","eanAlternative":"0123456789012345678901234","supplierProduct":{"itemCode":"T1234","number":"1234","name":"Shoe laces, white, 1m","price":10.5},"units":{"id":2},"category":{"id":12},"supplier":{"id":67890}}'# Headers
Authorization: string
# Payload
{
  "name": "White shoe laces",
  "number": "SH-1234567",
  "type": "default",
  "status": "active",
  "description": "1 meter long shoe laces - white",
  "costPrice": 50,
  "salesPrice": 400,
  "indirectCost": 12.77,
  "stock": {
    "isManaged": true,
    "quantity": 146,
    "location": "A-313"
  },
  "ean": "0123456789000",
  "eanAlternative": "0123456789012345678901234",
  "supplierProduct": {
    "itemCode": "T1234",
    "number": "1234",
    "name": "Shoe laces, white, 1m",
    "price": 10.5
  },
  "units": {
    "id": 2
  },
  "category": {
    "id": 12
  },
  "supplier": {
    "id": 67890
  }
}# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string
# Payload
{
  "id": 123,
  "name": "White shoe laces",
  "number": "SH-1234567",
  "type": "default",
  "status": "active",
  "description": "1 meter long shoe laces - white",
  "costPrice": 50,
  "salesPrice": 400,
  "indirectCost": 12.77,
  "stock": {
    "isManaged": true,
    "quantity": 146,
    "location": "A-313"
  },
  "ean": "0123456789000",
  "eanAlternative": "0123456789012345678901234",
  "supplierProduct": {
    "itemCode": "T1234",
    "number": "1234",
    "name": "Shoe laces, white, 1m",
    "price": 10.5
  },
  "units": {
    "id": 2,
    "name": "Meter",
    "symbol": "m"
  },
  "category": {
    "id": 12,
    "name": "Shoe accessories"
  },
  "supplier": {
    "id": 67890,
    "name": "XYZ Inc."
  },
  "createdAt": "2022-01-01 18:00:00.000Z",
  "modifiedAt": "2023-12-31 18:00:00.000Z"
}