Adds option parameter to line_items api controller

resolves #5655