Options
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Trying to update a shipment, but gets Error "Object reference not set to an instance of an object" and cannot find why. Can someone point me in the right direction?
{
"shipmentNumber": {
"Value": "000002"
},
"shipmentType": {
"Value": "Issue"
},
"hold": {
"Value": true
},
"operation": {
"Value": "Issue"
},
"shipmentDetailLines": [
{
"lineNumber": {
"Value": 1
},
"shippedQty": {
"Value": 1.0
},
"operation": "Update"
}
],
"note": {
"Value": "Test"
},
"shipmentPackageLines": [
{
"operation": "Insert",
"boxId": {
"Value": "BOX"
},
"description": {
"Value": "00087122820000000679"
},
"weight": {
"Value": 2.0
},
"trackingNumber": {
"Value": "TESTTRK000002002"
},
"customRefNbr1": {
"Value": "BLE"
},
"confirmed": {
"Value": true
},
"coDAmount": {
"Value": 2.0
}
}
]
}
Solved! Go to Solution.
2 REPLIES 2
Hi,
The issue seems to be occurring when the "lineNumber" field is not included, on our end the JSON below works:
{
"shipmentNumber": {
"Value": "000002"
},
"shipmentType": {
"Value": "Issue"
},
"hold": {
"Value": true
},
"operation": {
"Value": "Issue"
},
"shipmentDetailLines": [
{
"lineNumber": {
"Value": 1
},
"shippedQty": {
"Value": 1.0
},
"operation": "Update"
}
],
"note": {
"Value": "Test"
},
"shipmentPackageLines": [
{
"operation": "Insert",
"lineNumber": {
"value": 0
},
"boxId": {
"Value": "BOX"
},
"description": {
"Value": "00087122820000000679"
},
"weight": {
"Value": 2.0
},
"trackingNumber": {
"Value": "TESTTRK000002002"
},
"customRefNbr1": {
"Value": "BLE"
},
"confirmed": {
"Value": true
},
"coDAmount": {
"Value": 2.0
}
}
]
}
