Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
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 } ]
}
}
}]
}
}