Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Setting inventory status in adjustment via Rest API
When trying to perform a stock adjustment via the REST API, I get "Error while accessing a resource. You still need to reconfigure the inventory detail record after changing the quantity"
I've sent the inventoryStatus field in the inventory detail but doesn't seem to like. Here is the body of my inventoryAdjustment call
{
subsidiary: '1',
adjLocation: '28',
account: '453',
department: '2',
custbody_atlas_inv_adj_reason: '3',
inventory: {
items: [
{
item: { id: '7252' },
location: '28',
adjustQtyBy: -90,
inventoryDetail: {
quantity: -90,
inventoryassignment: {
items: [ { inventoryStatus: { id: '2' }, quantity: -90 } ]
}
}
}]
}
}