insertStocks_v3 web service.{
"stocksRecords": [
{
"goods": {
"entityCode": "",
"year": "",
"movementDate": "",
"causal": ""
},
"rows": [
{
"quantity": "",
"barcode": ""
},
{
"quantity": "",
"barcode": ""
},
{
"quantity": "",
"barcode": ""
}
]
}
]
}
| Field | Type | Description | Mandatory |
|---|---|---|---|
entityCode | string | Entity code | ā |
causal | string | Causal code | ā |
year | number | Document year | ā |
movementDate | date | Movement date | ā |
| Field | Type | Description | Mandatory |
|---|---|---|---|
barcode | string | Item barcode | ā |
quantity | number | Item quantity | ā |
{
"stocksRecords": [
{
"goods": {
"entityCode": 10,
"year": 2021,
"movementDate": "2021-01-20 04:36:01",
"causal": "STOCK"
},
"rows": [
{
"quantity": 0,
"barcode": "8000200618755"
},
{
"quantity": 0,
"barcode": "8009495453546"
},
{
"quantity": 0,
"barcode": "1000011698011"
},
{
"quantity": -8,
"barcode": "8000200559614"
},
{
"quantity": 0,
"barcode": "8000200559621"
},
{
"quantity": 0,
"barcode": "8000200619745"
},
{
"quantity": -5,
"barcode": "8000200621861"
}
]
}
]
}curl --location --request POST '/api?cmd=insertStocks_v3&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 '{
"stocksRecords": [
{
"goods": {
"entityCode": 10,
"year": 2021,
"movementDate": "2021-01-20 04:36:01",
"causal": "STOCK"
},
"rows": [
{
"quantity": 0,
"barcode": "8000200618755"
},
{
"quantity": 0,
"barcode": "8009495453546"
},
{
"quantity": 0,
"barcode": "1000011698011"
},
{
"quantity": -8,
"barcode": "8000200559614"
},
{
"quantity": 0,
"barcode": "8000200559621"
},
{
"quantity": 0,
"barcode": "8000200619745"
},
{
"quantity": -5,
"barcode": "8000200621861"
}
]
}
]
}'{}