Get Item with Availability Information by POST operation
Returns items with the Availability information filtered by business location and SKUs. Accepts SKUs list in request body and other parameters as query parameters.
Query parameters
-
The unique identifier for the business location
-
The page number, when paginating. Starts at 0.
Minimum value is
0
. Default value is0
. -
The items per page, when paginating
Minimum value is
1
, maximum value is100
. Default value is25
.
POST
/o/op/1/itemAvailability
curl \
--request POST 'https://api.trial.lsk.lightspeed.app/o/op/1/itemAvailability?businessLocationId=45454565682155' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"skus":["string"]}'
Request examples
{
"skus": [
"string"
]
}
Response examples (200)
{
"data": [
{
"sku": "string",
"count": 42,
"updatedAt": "2025-07-08T14:20:00Z"
}
],
"metadata": {
"current": {
"page": 42,
"pageSize": 42
},
"total": 42,
"totalPages": 42
}
}
Response examples (400)
{
"timestamp": "2023-11-07T22:18:49.101Z",
"status": 400,
"error": "Bad Request",
"message": "Required request parameter 'businessLocationId' for method parameter type Long is not present",
"path": "/op/1/saleRestrictedItems"
}