@Gabriella Hennings wrote:
1)What company settings is that?
2)So you are able to insert new allocation lines to non-stock kit item, where the components need lot numbers? 3)How do you specify the inventory id? From what i can see there are no property for it in the API, so how does the system know which inventory item I'm referring to?
4) Do you see any faults in the json above?
1) LOT & Serials Setting of the "STOCK" items included in the KIT.
(Non-Stock item doesn't have LOT-Serial tracking, and they can be added to a KIT just as a "LABOUR" to reflect some cost etc.)
* KIT Specifications (ScreenId=IN209500) and KIT Assembly(ScreenId=IN3070PL)
2) Manage non-stock items - overview "In the system, non-stock items are handled differently from stock items kept in warehouses. For stock items, the Inventory workspace maintains all cost, quantity, sales, and cost-of-goods-sold information. Since non-stock items do not require tracking of quantities, the Inventory workspace maintains only standard costs and base price information for them."
So you can not have LOT&Serial tracking in allocation for the Non-Stock as it can also be seen in the UI.
Shipment > Allocation
3) You're specifying the "LineNumber" in Shipment PUT Request so that system takes the Inventory from the specified line as how you first select line then opening allocation tab in the UI.
"shipmentDetailLines": [
{
"operation": "Update",
"lineNumber": {
"value": 1
},
"allocations": [
{
...
...
4) JSON is ok as previously we've shared an example. Please note that, this is for stock items. {
"shipmentDetailLines": [
{
"operation": "Update",
"lineNumber": {
"value": 1
},
"allocations": [
{
"operation": "Update",
"lineNbr": {
"value": 1
},
"location": {
"value": "1"
},
"lotSerialNumber": {
"value": "000002"
},
"quantity": {
"value": 20
}
}
]
}
]
}
... View more