Greetings—
We have an external system that utilizes the REST API to adjust inventory levels in NetSuite. We have noticed, however, that sometimes the adjustQtyBy value that we supply in the request body is not the same value that NetSuite adjusts the amount by. What might cause this to happen?
Here is a recent example:
The system made a REST call like below:
{
"account": {
"id": <REMOVED>
},
"inventory": {
"items": [
{
"item": {
"id": <REMOVED>
},
"location": {
"id": 1
},
"adjustQtyBy": -6.0
}
]
},
"memo": "USED | 6 |"
}
This should have reduced the amount of the item in question by 6. However, on the NetSuite side we got this result instead: an increase by 28 instead of a decrease by 6.
Does anyone have any insight on how such a marked discrepancy could come about?
I should note that this does not happen all the time—in fact, most of the time the adjustment quantity matches the adjustQtyBy amount in the REST call. But every once in a while we see these flagrant differences.