Enum:"AVERAGE_COST_PRICE""GROSS_PRICE_CURRENT_COST""NET_PRICE_CURRENT_COST"
PUT
curl -i -X PUT \
'https://api.prana.software/api/v1/stock-transfer/{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
}
],
"id": 0,
"sourceWarehouse": 0,
"destinationWarehouse": 0,
"valuationType": "AVERAGE_COST_PRICE",
"doTransfer": true
}'OK
Response
{ "id": "", "number": 0, "documentDate": "2019-08-24", "quantityTotal": 0, "observations": "string", "lines": [ { … } ], "stockTransferedDate": "2019-08-24", "stockTransfered": true, "sourceWarehouse": { "id": "", "code": "ALM01", "description": "Central warehouse", "population": "Madrid", "active": true }, "destinationWarehouse": { "id": "", "code": "ALM01", "description": "Central warehouse", "population": "Madrid", "active": true }, "valuationType": "AVERAGE_COST_PRICE" }