Update an item

PUT /items/v1/items/{id}

Modifies the values of an existing item.

Path parameters

  • id integer(int64) Required
application/json

Body Required

Responses

PUT /items/v1/items/{id}
curl \
 -X PUT https://api.lsk.lightspeed.app/items/v1/items/3012455645 \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"cola","businessLocationId":45454565682155,"docketName":"docketName","sku":"sku123577","active":true,"barcode":"10011101100","barcodes":["10011101100"],"costPrice":42.0,"priceMode":"PERCENT","defaultPrice":3,"accountingGroupId":462478248241}'
Request example
{
  "name": "cola",
  "businessLocationId": 45454565682155,
  "docketName": "docketName",
  "sku": "sku123577",
  "active": true,
  "barcode": "10011101100",
  "barcodes": [
    "10011101100"
  ],
  "costPrice": 42.0,
  "priceMode": "PERCENT",
  "defaultPrice": 3,
  "accountingGroupId": 462478248241
}
Response examples (200)
{
  "accountingGroup": {
    "id": 42,
    "name": "string"
  },
  "active": true,
  "barcode": "string",
  "barcodes": [
    "string"
  ],
  "contentDimension": "DIMENSION_LESS",
  "contentUom": "string",
  "contentValue": 42.0,
  "costPrice": 42.0,
  "disabled": true,
  "docketName": "string",
  "id": 42,
  "inventorySource": "PURCHASED",
  "itemType": "ITEM",
  "name": "string",
  "priceMode": "AMOUNT",
  "prices": [
    {
      "amount": 42.0,
      "name": "string"
    }
  ],
  "sharingType": "GLOBAL_NO_BL",
  "sku": "string",
  "statisticGroups": [
    {
      "category": "string",
      "value": "string"
    }
  ]
}
Response examples (400)
{
  "status": "400",
  "timestamp": "2024-05-04T09:42:00+00:00",
  "message": "string",
  "apiSubExceptions": [
    {
      "field": "string",
      "rejectedValue": "string",
      "message": "string"
    }
  ]
}