dev-docs icon indicating copy to clipboard operation
dev-docs copied to clipboard

Feedback for “Adjustments”

Open DaveTD opened this issue 1 year ago • 0 comments

I'm mostly getting correct results for sending relative adjustments, but after I first set up a new product or variant, I get this 422 error when trying to do a relative adjustment:

Items with identity: [sku ...] requires absolute adjustment before relative

When I get this error, I can adjust the inventory by first doing an absolute adjustment, and then subsequent relative adjustments seem to start working.

However, this workaround doesn't really work when using multiple locations and I try to modify inventory levels for the same sku in multiple places. The error comes back as it does in the example above, and I can't tell which location needs absolute adjustment before I can make relative adjustments.

The workaround is also not ideal because I don't really want to make absolute adjustments.

Is there anything in the api that can tell me that I'm going to run into this error before I try to make a relative adjustment? Is there any information available as to why an absolute adjustment is needed before a relative one?

DaveTD avatar Jan 02 '24 02:01 DaveTD