Get All Items
Returns the items for a specific business location. Supports searching by accountingGroupId
, name
, or sku
.
Query parameters
-
The unique identifier for the business location.
-
sku string
A stock keeping unit.
Minimum length is
1
, maximum length is32
. -
name string
The name of the item.
Minimum length is
1
, maximum length is180
. -
accountingGroupId integer(int64)
The unique identifier for the accounting group.
-
offset integer(int64)
Offset allows you to retrieve a subset of records starting from a specified position in the dataset. Offset normally works with
amount
, which designates how many records to retrieve, starting from the offset position.Default value is
0
. -
amount integer(int64)
The number of results to return with each request.
Maximum value is
100
. Default value is100
.
GET /items/v1/items
curl \
-X GET https://api.lsk.lightspeed.app/items/v1/items?businessLocationId=45454565682155 \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": 3012455645,
"name": "Burger",
"docketName": "The Burger",
"sku": "UGG-BB-PUR-06",
"active": true,
"barcode": "00000001",
"barcodes": [
"10011101100"
],
"accountingGroup": {
"id": 40570261078058,
"name": "Alcoholic beverages"
},
"statisticGroups": [
{
"category": "default",
"value": "Food"
}
],
"costPrice": 5.0,
"prices": [
{
"amount": 10.0,
"name": "Tuesday Special"
}
],
"sharingType": "SHARED",
"priceMode": "POSITIVE_OPEN_PRICE",
"inventorySource": "PURCHASED",
"disabled": false,
"contentDimension": "MASS",
"contentUom": "kg",
"contentValue": 1,
"itemType": "ITEM"
}
Response examples (400)
{
"status": "400",
"timestamp": "2024-05-04T09:42:00+00:00",
"message": "string",
"apiSubExceptions": [
{
"field": "string",
"rejectedValue": "string",
"message": "string"
}
]
}
Response examples (404)
{
"status": "404",
"timestamp": "2024-05-04T09:42:00+00:00",
"message": "string",
"apiSubExceptions": [
{
"field": "string",
"rejectedValue": "string",
"message": "string"
}
]
}