API fixes for stock movement changes