v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Storage Location

Set total stock on storage locations

This endpoint sets the total stock for one or more storage locations.<br>The stock data provided in the payload, including quality control attributes (batch, best-before date, and serial number), will be taken over as the new stock for the specified storage location(s).<br><br><strong>CAUTION: Any stock that was previously present in the storage location and is not specified in the payload will be removed from the storage location. This also includes the quality control attributes.</strong>

patch/api/v1/storageLocations/setTotalStock

Request body

Example request

{
  "data": [
    {
      "storageLocation": {
        "id": "17"
      },
      "totalStock": [
        {
          "product": {
            "id": "17"
          }
        }
      ]
    }
  ]
}

Response

Operation completed successfully, no response body