Updates multiple stock movements.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Body
Required
-
Entity ID. If negative value, a new entity will be created
-
Movement date (format dd/MM/yyyy)
-
Movement direction
Values are
INorOUT. -
Movement type
Values are
MANUALorSHIPMENT. -
Article ID
-
EAN barcode (alternative to articleId)
-
Quantity as string
-
Currency ID
-
Unit cost as string
-
Comment or note
-
Organization ID
-
Department ID
-
Contact ID
-
Order ID
-
Office ID
POST
/api-v1/stock-movement-line/batch
curl \
--request POST 'https://wyzio.app/api-v1/stock-movement-line/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"date":"01/06/2026","movementDirection":"IN","type":"MANUAL","articleId":12345678,"ean":4006381333931,"quantity":10.0,"currencyId":12345678,"cost":25.0,"comment":"Initial stock entry","organizationId":12345678,"departmentId":12345678,"contactId":12345678,"orderId":12345678,"officeId":12345678}]'
Request examples
# Headers
# Payload
[
{
"id": 12345678,
"date": "01/06/2026",
"movementDirection": "IN",
"type": "MANUAL",
"articleId": 12345678,
"ean": 4006381333931,
"quantity": 10.0,
"currencyId": 12345678,
"cost": 25.0,
"comment": "Initial stock entry",
"organizationId": 12345678,
"departmentId": 12345678,
"contactId": 12345678,
"orderId": 12345678,
"officeId": 12345678
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}