Space Docs
Domain Model

Purchase Order Line Item

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
purchaseOrderIdstringYesID of the associated purchase order
customerIdunknownNoID of the associated customer
descriptionstringYesDescription
quantitynumberYesQuantity
unitCostnumberYesUnit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)YesStatus
receivedQuantitynumberYesReceived quantity
sortOrderintegerYesSort order
visibilityModeunknownYesVisibility mode
bomLineIdstringNoID of the associated bom line
partNumberstringNoPart number
manufacturerstringNoManufacturer
totalCostunknownNoTotal cost
workspaceIdstringYesID of the associated workspace

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
purchaseOrderIdstringYesID of the associated purchase order
descriptionstringYesDescription
quantitynumberYesQuantity
unitCostnumberYesUnit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)Yes"pending"Status
receivedQuantitynumberYes0Received quantity
sortOrderintegerYes0Sort order
visibilityModeunknownNoVisibility mode
bomLineIdstringNoID of the associated bom line
customerIdunknownNoID of the associated customer
partNumberstringNoPart number
manufacturerstringNoManufacturer
totalCostunknownNoTotal cost
workspaceIdstringNoID of the associated workspace

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
descriptionstringNoDescription
quantitynumberNoQuantity
unitCostnumberNoUnit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)NoStatus
receivedQuantitynumberNoReceived quantity
sortOrderintegerNoSort order
bomLineIdstringNoID of the associated bom line
customerIdunknownNoID of the associated customer
partNumberstringNoPart number
manufacturerstringNoManufacturer
totalCostunknownNoTotal cost

On this page