AlphaAlpha Docs
API ReferenceStock transfers

Dynamic search with enriched results

Performs a dynamic search and returns enriched stock transfer data

POST
/stock-transfers/dynamic-search-enriched
AuthorizationBearer <token>

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

application/json

curl -X POST "http://localhost:18080/api/v1/stock-transfers/dynamic-search-enriched" \  -H "Content-Type: application/json" \  -d '{    "filters": {      "property1": null,      "property2": null    },    "page": 0,    "search": [      "string"    ],    "size": 0,    "sort": [      {        "ascending": true,        "field": "string"      }    ]  }'
{
  "content": [
    {
      "batchAllocations": [
        {
          "batchNumber": "string",
          "expirationDate": "2019-08-24T14:15:22Z",
          "locationId": "string",
          "productId": "string",
          "quantity": 0.1
        }
      ],
      "cancelledProducts": [
        {
          "productId": "string",
          "quantity": 0.1,
          "unit": "string"
        }
      ],
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "deliveryDate": "2019-08-24T14:15:22Z",
      "deliveryMethod": "REGULAR",
      "destinationSiteId": "string",
      "events": [
        {
          "authorId": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "type": "CREATE"
        }
      ],
      "id": "string",
      "incomingStockTransferId": "string",
      "incomingStockTransferStatus": "EXPECTED",
      "note": "string",
      "picklistIds": [
        "string"
      ],
      "priority": "LOW",
      "productStatus": [
        {
          "finishedQuantity": 0.1,
          "productId": "string",
          "quantityCanBeCancelled": 0.1,
          "quantityCancelled": 0.1,
          "quantityDelivered": 0.1,
          "quantityOrdered": 0.1,
          "quantityPending": 0.1,
          "quantityPicked": 0.1,
          "quantityReservedPicklist": 0.1,
          "quantityReservedUnassigned": 0.1,
          "quantityReturned": 0.1,
          "quantityShipped": 0.1,
          "returnStarted": true,
          "unitPrice": 0.1
        }
      ],
      "products": [
        {
          "availableStock": 0.1,
          "baseUnitConversion": 0.1,
          "baseUnitQuantity": 0.1,
          "batchAllocations": [
            {
              "batchNumber": "string",
              "expirationDate": "2019-08-24T14:15:22Z",
              "locationId": "string",
              "productId": "string",
              "quantity": 0.1
            }
          ],
          "imageAssets": [
            {
              "blobId": "string",
              "created": "2019-08-24T14:15:22Z",
              "extension": "string",
              "fileSize": 0,
              "name": "string",
              "type": "IMAGE"
            }
          ],
          "pending": 0.1,
          "price": 0.1,
          "productId": "string",
          "productName": "string",
          "quantity": 0.1,
          "quantityCancelled": 0.1,
          "quantityDelivered": 0.1,
          "quantityPicked": 0.1,
          "quantityReturned": 0.1,
          "quantityShipped": 0.1,
          "reservations": [
            {
              "productId": "string",
              "quantity": 0.1,
              "siteId": "string",
              "siteName": "string"
            }
          ],
          "returnStarted": true,
          "totalReserved": 0.1,
          "unit": "string",
          "unitsOfMeasurement": [
            {
              "baseUnit": true,
              "cost": 0.1,
              "decimal": true,
              "isBaseUnit": true,
              "isDecimal": true,
              "name": "string",
              "quantity": 0.1,
              "salesPrice": 0.1,
              "unit": "string"
            }
          ]
        }
      ],
      "reservationsGroupedBySite": {
        "property1": [
          {
            "productId": "string",
            "quantity": 0.1,
            "siteId": "string",
            "siteName": "string"
          }
        ],
        "property2": [
          {
            "productId": "string",
            "quantity": 0.1,
            "siteId": "string",
            "siteName": "string"
          }
        ]
      },
      "reservedProducts": [
        {
          "productId": "string",
          "quantity": 0.1,
          "siteId": "string",
          "siteName": "string"
        }
      ],
      "status": "DRAFT",
      "stockSiteId": "string",
      "subsidiaryId": "string",
      "tenantId": "string",
      "transferNumber": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "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"
}