[API] Allow for extra parameters to be passed through to a line item

Fixes #3404