Space Docs
Domain Model

Purchase Order Line Item

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
purchaseOrderIdstringYes—ID of the associated purchase order
customerIdunknownNo—ID of the associated customer
descriptionstringYes—Description
quantitynumberYes—Quantity
unitCostnumberYes—Unit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)Yes—Status
receivedQuantitynumberYes—Received quantity
sortOrderintegerYes—Sort order
visibilityModeunknownYes—Visibility mode
bomLineIdstringNo—ID of the associated bom line
partNumberstringNo—Part number
manufacturerstringNo—Manufacturer
totalCostunknownNo—Total cost
workspaceIdstringYes—ID of the associated workspace

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
purchaseOrderIdstringYes—ID of the associated purchase order
descriptionstringYes—Description
quantitynumberYes—Quantity
unitCostnumberYes—Unit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)Yes"pending"Status
receivedQuantitynumberYes0Received quantity
sortOrderintegerYes0Sort order
visibilityModeunknownNo—Visibility mode
bomLineIdstringNo—ID of the associated bom line
customerIdunknownNo—ID of the associated customer
partNumberstringNo—Part number
manufacturerstringNo—Manufacturer
totalCostunknownNo—Total cost
workspaceIdstringNo—ID of the associated workspace

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
descriptionstringNo—Description
quantitynumberNo—Quantity
unitCostnumberNo—Unit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)No—Status
receivedQuantitynumberNo—Received quantity
sortOrderintegerNo—Sort order
bomLineIdstringNo—ID of the associated bom line
customerIdunknownNo—ID of the associated customer
partNumberstringNo—Part number
manufacturerstringNo—Manufacturer
totalCostunknownNo—Total cost

On this page