API ReferenceStock inventory
Search inventory batches at a site
Returns a flat, paginated list of product-batch rows for a given stock site with optional filters
AuthorizationBearer <token>
In: header
Query Parameters
stockSiteId*string
search?string
category?string
brand?string
batchNumber?string
locationId?string
expiryFrom?string
Format
date-timeexpiryTo?string
Format
date-timestockDateFrom?string
Format
date-timestockDateTo?string
Format
date-timepage?integer
Default
0Format
int32size?integer
Default
20Format
int32sortBy?string
Default
"productName"direction?string
Default
"ASC"Value in
"ASC" | "DESC"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory/batch-search?stockSiteId=string"{
"content": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expirationDate": "2019-08-24T14:15:22Z",
"imageAssets": [
{
"blobId": "string",
"created": "2019-08-24T14:15:22Z",
"extension": "string",
"fileSize": 0,
"name": "string",
"type": "IMAGE"
}
],
"lastStockDate": "2019-08-24T14:15:22Z",
"locationId": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantity": 0.1,
"unitPrice": 0.1
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}