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
- Base URLhttps://xentral.xentral.biz
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": [
{
"storageLocation": {
"id": "17"
},
"totalStock": [
{
"product": {
"id": "17"
}
}
]
}
]
}Response
Operation completed successfully, no response body
Changes
No recorded changes to this operation across all 2 revisions of this API.