PUT
curl -i -X PUT \
'https://api.prana.software/api/v1/inventory/{id}' \
-H 'Content-Type: application/json' \
-d '{
"number": 0,
"documentDate": "2019-08-24",
"quantityTotal": 0,
"observations": "string",
"lines": [
{
"id": "",
"articleCombination": 0,
"sizeRange": 0,
"assortment": 0,
"lineNumber": 0,
"articleDescription": "string",
"packages": 0,
"quantityPerPackage": 0,
"price": 0,
"lineObservations": "string",
"details": [
{
"id": "",
"sizeRangeDetail": 0,
"width": 0,
"quantityPerPackage": 0
}
],
"parentPackId": 0,
"parentPackLineNumber": 0,
"presentationId": 0,
"presentationPacksQuantity": 0,
"totalLine": 0,
"batchList": [
null
],
"serialNumberList": [
{
"id": "",
"serialNumber": "string"
}
],
"noAccumulateWarehouse": true,
"warehouse": 0
}
],
"warehouse": 0,
"valuationType": "AVERAGE_COST_PRICE",
"doInventory": true
}'OK
Response
{ "id": "", "number": 0, "documentDate": "2019-08-24", "quantityTotal": 0, "observations": "string", "lines": [ { … } ], "inventoriedDate": "2019-08-24", "inventoried": true, "warehouse": { "id": "", "code": "ALM01", "description": "Central warehouse", "population": "Madrid", "active": true }, "valuationType": "AVERAGE_COST_PRICE" }