POST call, passing a JSON body as specified below.| Field | Description | Type | Mandatory |
|---|---|---|---|
| barcodes | List of barcodes separated by a comma (',') | String | ā(if itemCode is not set) |
| itemCode | Item code of the article for which the stock is requested | String | ā(if barcodes is not set) |
| entityCode | Shop code | String |
{
"item": {
"barcodes" : "1000013135378",
"itemCode": "000",
"entityCode": 4
}
}curl --location --request POST '/api?cmd=getStocks_v4&appId=KEEPIT&applicationId=KEEPIT' \
--header 'username: {{USERNAME}}' \
--header 'password: {{PASSWORD}}' \
--header 'companyId: {{COMPANY_ID}}' \
--header 'siteId: {{SITE_ID}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"item": {
"barcodes" : "1000013135378",
"itemCode": "000",
"entityCode": 4
}
}'{
"moreRows": false,
"resultSetLength": 4,
"success": true,
"code": 200,
"valueObjectList": [
{
"entityCode": "2",
"barcode": "1000013135378",
"item": "000",
"description": "SCARPA UOMO",
"dim1": "Taglia",
"codDim1": "19",
"desDim1": "44",
"dim2": "Colore",
"codDim2": "38",
"desDim2": "Asfalto",
"quantity": 0
},
{
"entityCode": "4",
"barcode": "1000013135378",
"item": "000",
"description": "SCARPA UOMO",
"dim1": "Taglia",
"codDim1": "19",
"desDim1": "44",
"dim2": "Colore",
"codDim2": "38",
"desDim2": "Asfalto",
"quantity": 14
},
{
"entityCode": "1",
"barcode": "1000013135378",
"item": "000",
"description": "SCARPA UOMO",
"dim1": "Taglia",
"codDim1": "19",
"desDim1": "44",
"dim2": "Colore",
"codDim2": "38",
"desDim2": "Asfalto",
"quantity": -66
},
{
"entityCode": "103",
"barcode": "1000013135378",
"item": "000",
"description": "SCARPA UOMO",
"dim1": "Taglia",
"codDim1": "19",
"desDim1": "44",
"dim2": "Colore",
"codDim2": "38",
"desDim2": "Asfalto",
"quantity": 14
}
]
}