Stock Count
Stock Count API
Create stock count
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/inventory-stock-count" \ -H "Content-Type: application/json" \ -d '{ "productLocation": { "batchNumber": "string", "locationId": "string", "productId": "string" }, "stockSiteId": "string" }'{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Delete by list of ids in current tenant
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/inventory-stock-count" \ -H "Content-Type: application/json" \ -d '[ "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"
}Create a draft stock count
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/inventory-stock-count/empty"{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Find by list of ids in current tenant
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory-stock-count/find?ids=string"[
{
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"difference": 0.1,
"expiration": "2019-08-24T14:15:22Z",
"hasBeenCounted": true,
"lastStockDate": "2019-08-24T14:15:22Z",
"locationId": "string",
"mismatchReason": "string",
"productId": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitPrice": 0.1,
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1,
"varianceValue": 0.1
}
],
"reason": "string",
"reviewNote": "string",
"siteId": "string",
"status": "DRAFT",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}
]{
"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"
}Find all for current tenant
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory-stock-count/find-all"[
{
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"difference": 0.1,
"expiration": "2019-08-24T14:15:22Z",
"hasBeenCounted": true,
"lastStockDate": "2019-08-24T14:15:22Z",
"locationId": "string",
"mismatchReason": "string",
"productId": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitPrice": 0.1,
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1,
"varianceValue": 0.1
}
],
"reason": "string",
"reviewNote": "string",
"siteId": "string",
"status": "DRAFT",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}
]{
"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"
}Find by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory-stock-count/find/string"{
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"difference": 0.1,
"expiration": "2019-08-24T14:15:22Z",
"hasBeenCounted": true,
"lastStockDate": "2019-08-24T14:15:22Z",
"locationId": "string",
"mismatchReason": "string",
"productId": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitPrice": 0.1,
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1,
"varianceValue": 0.1
}
],
"reason": "string",
"reviewNote": "string",
"siteId": "string",
"status": "DRAFT",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Get page by page number and size with optional sorting based on field to sortBy and direction
In: header
Query Parameters
int32int32"ASC" | "DESC"Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory-stock-count/page"{
"content": [
{
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"difference": 0.1,
"expiration": "2019-08-24T14:15:22Z",
"hasBeenCounted": true,
"lastStockDate": "2019-08-24T14:15:22Z",
"locationId": "string",
"mismatchReason": "string",
"productId": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitPrice": 0.1,
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1,
"varianceValue": 0.1
}
],
"reason": "string",
"reviewNote": "string",
"siteId": "string",
"status": "DRAFT",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}
],
"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"
}Get page by page number and size with optional sorting based on field to sortBy and direction
In: header
Query Parameters
int32int32"ASC" | "DESC"Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory-stock-count/page-enriched?pageNumber=0"{
"content": [
{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}
],
"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"
}Get stats for stock counts
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory-stock-count/stats"{
"groupedStatuses": {
"property1": 0,
"property2": 0
},
"totalCounts": 0,
"totalProducts": 0,
"totalVarianceValue": 0.1
}{
"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"
}Get enriched stock count
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/inventory-stock-count/string"{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Update stock count
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string" \ -H "Content-Type: application/json" \ -d '{ "productLocations": [ { "batchNumber": "string", "locationId": "string", "productId": "string" } ] }'{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Delete by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/inventory-stock-count/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"
}Approve a stock count request
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string/approve-request"{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Cancel a stock count
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string/cancel"{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Comment on a stock count
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/inventory-stock-count/string/comment" \ -H "Content-Type: application/json" \ -d 'string'{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Complete review for stock count
In: header
Path Parameters
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string/complete-review"{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Reject a stock count request
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string/reject"{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Request internal approval for stock count
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string/request-approval"{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Request review of counted stock
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string/request-review" \ -H "Content-Type: application/json" \ -d '[ { "batchNumber": "string", "locationId": "string", "productId": "string", "quantity": 0.1 } ]'{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}Review counted stock for product
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/inventory-stock-count/string/review-count" \ -H "Content-Type: application/json" \ -d '{ "approved": true, "batchNumber": "string", "locationId": "string", "productId": "string" }'{
"allProductCountsApproved": true,
"allProductCountsReviewed": true,
"countReason": "string",
"counter": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"internalReview": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"products": [
{
"batchNumber": "string",
"brand": "string",
"category": "string",
"expiration": "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",
"mismatchReason": "string",
"productId": "string",
"productName": "string",
"productionDate": "2019-08-24T14:15:22Z",
"quantityCounted": 0.1,
"quantityInSystem": 0.1,
"review": {
"approved": true,
"by": "string",
"on": "2019-08-24T14:15:22Z",
"reason": "string"
},
"unitOfMeasurements": [
{
"baseUnit": true,
"cost": 0.1,
"decimal": true,
"isBaseUnit": true,
"isDecimal": true,
"name": "string",
"quantity": 0.1,
"salesPrice": 0.1,
"unit": "string"
}
],
"uomSplit": [
{
"productId": "string",
"quantity": 0.1,
"unit": "string"
}
],
"variancePercentage": 0.1
}
],
"reviewNote": "string",
"status": "DRAFT",
"stockSiteId": "string",
"subsidiaryId": "string",
"systemAdjustedOn": "2019-08-24T14:15:22Z",
"tenantId": "string",
"totalVariancePercentage": 0.1,
"totalVarianceValue": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"varianceStatus": "MINOR_VARIANCE"
}{
"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"
}