Productive icon

Productive

Interact with the Productive API

Actions508

Line Items → Create a line item

AI-generated

Summary

Create a new line item on a specified invoice in Productive by providing details such as invoice ID, unit ID, unit price, quantity, and optionally description and invoicing parameters.

Inputs

  • Invoice ID (required) — Numeric ID of the invoice to which the line item will be added.
  • Unit ID (required) — Numeric ID of the unit for the line item.
  • Unit Price (required) — Unit price for the line item as a number with up to 2 decimal places.
  • Quantity (required) — Quantity of units for the line item as a number with up to 2 decimal places.
  • Description — Optional textual description of the line item.
  • Budget IDs — Optional array of budget IDs associated with the line item (string format).
  • Invoicing Method — Optional invoicing method; possible values are 'uninvoiced_time_and_expenses', 'uninvoiced_amount', or 'percentage'.
  • Invoicing By — Optional, required when invoicing method is 'uninvoiced_amount' or 'percentage'; possible values are 'service' or 'budget'.
  • Percentage (required) — Percentage of budget revenue; required if invoicing method is 'percentage'.
  • Display Format — Optional display format for the line item.
  • Expense Display Format — Optional display format specifically for expenses.
  • Locale — Optional locale; required if invoicing method is 'uninvoiced_time_and_expenses'.
  • Date From — Optional start date-time for the line item period.
  • Date To — Optional end date-time for the line item period.

Output shape

a single record representing the created line item

Returns the created line item object; error handling may return error messages in the output JSON if configured to continue on fail.

Discussion