merit_create_inventory_movement
Create inventory movements in Merit Aktiva for stock in, out, or transfer between locations, specifying document date and movement lines.
Instructions
Create a Merit Aktiva inventory movement (POST /api/v2/SendInvMovement). type: 1 = in (itemUnitCost required on rows), 2 = out, 3 = between stocks (location2Code is the destination). Dates are ISO YYYY-MM-DD.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docDate": "<docDate>",
"type": "<type>",
"rows": "<rows>"
},
"name": "merit_create_inventory_movement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Movement lines (required) | |
| type | Yes | 1 = in, 2 = out, 3 = between stocks | |
| docNo | No | ||
| docDate | Yes | Document date YYYY-MM-DD (required) | |
| location1Code | No | Source / stock code | |
| location2Code | No | Destination stock code (type 3) | |
| departmentCode | No |