Added API for inventories
Added API for inventories