AlphaAlpha Docs
API ReferenceStock count

Get page by page number and size with optional sorting based on field to sortBy and direction

GET
/inventory-stock-count/page
AuthorizationBearer <token>

In: header

Query Parameters

pageNumber?integer
Formatint32
pageSize?integer
Formatint32
sortBy?string
direction?string
Value in"ASC" | "DESC"
search?string

Response Body

application/json

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"
      },
      "number": "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"
          },
          "splitFromBatch": "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"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}