Adds option parameter to line_items api controller

resolves #5655
Use 2 spaces for indentation in a hash, relative to the start of the line where the left curly brace is.