Invoice/Line item

Creates a new line item

Required permission: Invoices - Edit

post/invoices/{id}/line_items

Path parameters

idinteger required

ID of Invoice to update

Request body

itemstring

Also used to look the product up by name when no product_id or upc_code is given.

namestring
product_idinteger

When given, item, name, cost, price and taxable default from the product.

upc_codestring

Look the product up by barcode instead of by id.

quantitynumber
pricenumber

Required unless a product supplies one.

costnumber
taxableboolean
line_discount_percentnumber
discount_dollarsstring
location_idinteger

Required on multi-location accounts when the invoice has no location.

Response

Line item created

Changes