Space Docs
Domain Model

Invoice Line Item

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
invoiceIdstringYes—ID of the associated invoice
lineTypeIdunknownYes—ID of the associated line type
lineTypeenum(labor, materials, service, equipment, permit, travel, discount, monitoring, milestone, other)Yes—Line type
descriptionstringYes—Description
quantitynumberYes—Quantity
unitPricenumberYes—Unit price
totalPriceunknownNo—Total price
sortOrderintegerYes—Sort order
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
invoiceIdstringYes—ID of the associated invoice
lineTypeIdstringNo—ID of the associated line type
lineTypeenum(labor, materials, service, equipment, permit, travel, discount, monitoring, milestone, other)No—Line type
descriptionstringYes—Description
quantitynumberYes—Quantity
unitPricenumberYes—Unit price
totalPriceunknownNo—Total price
sortOrderintegerYes0Sort order
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
lineTypeIdstringNo—ID of the associated line type
lineTypeenum(labor, materials, service, equipment, permit, travel, discount, monitoring, milestone, other)No—Line type
descriptionstringNo—Description
quantitynumberNo—Quantity
unitPricenumberNo—Unit price
totalPriceunknownNo—Total price
sortOrderintegerNo—Sort order

On this page