api access for inventory