Adds option parameter to line_items api controller

resolves #5655
Line is too long. [99/80]