to get a personalized navigation.
to get a personalized navigation.
I am having trouble updating lotSerialNbr on shipments and can not figure out the problem.
If i make a GET request to "/v1/shipment/019893" i get this response in "shipmentDetailLines":
[
{
"lineNumber": 1,
"orderType": "WO",
"orderNbr": "2645567",
"inventoryNumber": "APB_ARC2.0",
"freeItem": false,
"warehouse": {
"id": "1 ",
"description": "Huvudlager"
},
"location": {
"id": "1",
"name": "Standard"
},
"uom": "STYCK",
"shippedQty": 1,
"orderedQty": 1,
"openQty": 0,
"lotSerialNbr": "",
"description": "KeyBudz AirCare 20 Premium reng\u00f6ringssats - kompatibel med Lightning och USB-C",
"allocations": [
{
"lineNbr": 2,
"itemId": "APB_ARC2.0",
"location": {
"id": "1",
"name": "Standard"
},
"lotSerialNumber": "",
"quantity": 1,
"uom": "STYCK",
"description": "KeyBudz AirCare 20 Premium Cleaning Kit - Lightning and USB-C Compatible"
}
],
"orderLineNbr": 1
},
{
"lineNumber": 3,
"orderType": "WO",
"orderNbr": "2645567",
"inventoryNumber": "ST-UC100WSM-EU",
"freeItem": false,
"warehouse": {
"id": "1 ",
"description": "Huvudlager"
},
"location": {
"id": "1",
"name": "Standard"
},
"uom": "STYCK",
"shippedQty": 1,
"orderedQty": 1,
"openQty": 0,
"lotSerialNbr": "",
"description": "Satechi 100W GaN PD-laddare med USB-C-uttag",
"allocations": [
{
"lineNbr": 4,
"itemId": "ST-UC100WSM-EU",
"location": {
"id": "1",
"name": "Standard"
},
"lotSerialNumber": "",
"quantity": 1,
"uom": "STYCK",
"description": "Satechi 100W GaN PD charger with USB-C outlets"
}
],
"orderLineNbr": 3
},
{
"lineNumber": 5,
"orderType": "WO",
"orderNbr": "2645567",
"inventoryNumber": "ST-UCT4DM",
"freeItem": false,
"warehouse": {
"id": "1 ",
"description": "Huvudlager"
},
"location": {
"id": "1",
"name": "Standard"
},
"uom": "STYCK",
"shippedQty": 1,
"orderedQty": 1,
"openQty": 0,
"description": "Satechi Thunderbolt 4 Dock - med 3 ThunderBolt anslutningar",
"allocations": [
{
"lineNbr": 11,
"itemId": "ST-UCT4DM",
"location": {
"id": "1",
"name": "Standard"
},
"lotSerialNumber": "",
"quantity": 1,
"uom": "STYCK",
"description": "Satechi Thunderbolt 4 Dock - with 3 Thunderbolt Outputs"
}
],
"orderLineNbr": 5
},
{
"lineNumber": 7,
"orderType": "WO",
"orderNbr": "2645567",
"inventoryNumber": "ST-UCHSEK",
"freeItem": false,
"warehouse": {
"id": "1 ",
"description": "Huvudlager"
},
"location": {
"id": "1",
"name": "Standard"
},
"uom": "STYCK",
"shippedQty": 1,
"orderedQty": 1,
"openQty": 0,
"lotSerialNbr": "",
"description": "Satechi USB-C HYBRID med inbyggd m\u00f6jlighet till SSD-lagring - Svart",
"allocations": [
{
"lineNbr": 8,
"itemId": "ST-UCHSEK",
"location": {
"id": "1",
"name": "Standard"
},
"lotSerialNumber": "",
"quantity": 1,
"uom": "STYCK",
"description": "Satechi USB-C HYBRID w built in SSD SSD storage compartment - Black"
}
],
"orderLineNbr": 7
},
{
"lineNumber": 9,
"orderType": "WO",
"orderNbr": "2645567",
"inventoryNumber": "323263114343",
"freeItem": false,
"warehouse": {
"id": "1 ",
"description": "Huvudlager"
},
"location": {
"id": "1",
"name": "Standard"
},
"uom": "STYCK",
"shippedQty": 1,
"orderedQty": 1,
"openQty": 0,
"lotSerialNbr": "",
"description": "UAG Plasma f\u00f6r Surface Pro 8 med hand- och axelrem - Svart",
"allocations": [
{
"lineNbr": 10,
"itemId": "323263114343",
"location": {
"id": "1",
"name": "Standard"
},
"lotSerialNumber": "",
"quantity": 1,
"uom": "STYCK",
"description": "UAG Plasma for Surface Pro 8 with hand shoulder strap - Black"
}
],
"orderLineNbr": 9
}
]
Right after i make PUT request to "/v1/shipment/019893" with the following data:
{
"shipmentDate": {
"value": "2025-03-28T09:04:25.422Z"
},
"shipmentDetailLines": [
{
"operation": "Update",
"lineNumber": {
"value": 1
},
"shippedQty": {
"value": 1
}
},
{
"operation": "Update",
"lineNumber": {
"value": 3
},
"shippedQty": {
"value": 1
}
},
{
"operation": "Update",
"lineNumber": {
"value": 5
},
"shippedQty": {
"value": 1
},
"allocations": [
{
"operation": "Update",
"lineNbr": {
"value": 11
},
"quantity": {
"value": 1
},
"lotSerialNumber": {
"value": "2110004623174314906948321814064718"
}
}
]
},
{
"operation": "Update",
"lineNumber": {
"value": 7
},
"shippedQty": {
"value": 1
}
},
{
"operation": "Update",
"lineNumber": {
"value": 9
},
"shippedQty": {
"value": 1
}
}
]
}
I receive this error: "Shipment Allocation Line: '11' not found."
Why is this ocuring when the GET request shows allocation line 11?
I always use Insert, I think update only works, if there is already an assigned serial number.
Suspect the line number is just a place holder.
Please also note, that the line number for allocations, should be written as: lineNbr
{
"operation": "Update",
"lineNbr": {
"value": 9
},
"shippedQty": {
"value": 1
}
Copyright © 2022 Visma.com. All rights reserved.