v1
latestOpenAPI 3.0.32026-07-268955212.1 KBinvoices
Add a line item to an invoice
Adds a line item to an existing draft invoice. The item will be added last in the list of line items on the invoice.
NOTE: The invoice must be in draft status.
Scope: invoices:write
post/companies/{companyId}/invoices/{invoiceId}/line-items
Request body
Example request
{
"id": 1,
"itemRef": {
"id": "55c899c5-82b2-47fa-9c51-e35fc9b26443",
"description": "Installation work"
},
"description": "Installation work",
"itemType": "salesItem",
"productType": "services",
"unitType": "hour",
"quantity": 10,
"unitPrice": 500,
"taxRate": 25,
"bookkeepingAccountNumber": 3389,
"taxReduction": {
"taxReductionType": "rot",
"jobType": "rotConstruction"
}
}Response
Line item added
Example response
{
"id": 1,
"itemRef": {
"id": "55c899c5-82b2-47fa-9c51-e35fc9b26443",
"description": "Installation work"
},
"description": "Installation work",
"itemType": "salesItem",
"productType": "services",
"unitType": "hour",
"quantity": 10,
"unitPrice": 500,
"taxRate": 25,
"bookkeepingAccountNumber": 3389,
"taxReduction": {
"taxReductionType": "rot",
"jobType": "rotConstruction"
}
}