Body Required
-
Minimum length is
1
, maximum length is180
. -
the id of the businessLocation
-
docketName string
Maximum length is
64
. -
Minimum length is
1
, maximum length is32
. -
active boolean
-
barcode string
Maximum length is
64
. -
barcodes array[string]
Minimum length of each is
1
, maximum length of each is64
. -
costPrice number
-
priceMode string
Values are
AMOUNT
,PERCENT
,POSITIVE_OPEN_PRICE
, orNEGATIVE_OPEN_PRICE
. Default value isAMOUNT
. -
Needs to be an existing accountingId
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 examples
{
"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"
}
],
"coursingOptions": {
"specificCourseItem": true,
"courseNumber": -1,
"multipleCoursesItem": true,
"coursesCount": 1
},
"productionInstructions": [
42
]
}
Response examples (400)
{"status"=>"400", "timestamp"=>"2024-05-04T09:42:00+00:00", "message"=>"string", "apiSubExceptions"=>[{"field"=>"string", "rejectedValue"=>"string", "message"=>"string"}]}