Example code for adding an invoice item using the API can be found in our Subscription Invoices documentation.
To add an invoice item in the Dashboard:
From there, add the subscription to the customer, and the invoice will generate for the cost of the subscription and the additional pending invoice item.