Space Docs
Domain Model

Purchase Order

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
vendorIdunknownNoID of the associated vendor
customerIdunknownNoID of the associated customer
poNumberstringYesPo number
projectIdstringNoID of the associated project
workOrderIdstringNoID of the associated work order
statusenum(draft, pending_approval, submitted, payment_due, paid, acknowledged, partially_received, received, canceled, in_fulfillment, invoiced, closed)YesStatus
orderDatestring.date-timeNoOrder date
expectedDeliveryDatestring.date-timeNoExpected delivery date
subtotalunknownNoSubtotal
taxAmountunknownNoTax amount
totalAmountunknownNoTotal amount
shippingAddressstringNoShipping address
notesstringNoNotes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)Yes"standard"Po type
submittedByUserIdunknownNoID of the associated submitted by user
approvedByUserIdunknownNoID of the associated approved by user
approvedAtunknownNoApproved at
rejectedReasonunknownNoRejected reason
actualDeliveryDateunknownNoActual delivery date
trackingNumberunknownNoTracking number
shippingMethodunknownNoShipping method
shippingCostunknownNoShipping cost
internalNotesunknownNoInternal notes
vendorAckAtunknownNoVendor ack at
warehouseIdunknownNoID of the associated warehouse
packingSlipS3KeyunknownNoPacking slip s3key
relatedQuoteS3KeyunknownNoRelated quote s3key
relatedQuoteFileNameunknownNoRelated quote file name
relatedQuoteNumberunknownNoRelated quote number
sourceQuoteIdunknownYesID of the associated source quote
directionenum(outbound, inbound)YesDirection
sourceVendorQuoteIdunknownYesID of the associated source vendor quote
workspaceIdstringYesID of the associated workspace
visibilityModeunknownYesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
vendorIdunknownNoID of the associated vendor
poNumberstringYesPo number
projectIdstringNoID of the associated project
customerIdunknownNoID of the associated customer
workOrderIdstringNoID of the associated work order
statusenum(draft, pending_approval, submitted, payment_due, paid, acknowledged, partially_received, received, canceled, in_fulfillment, invoiced, closed)Yes"draft"Status
orderDatestring.date-timeNoOrder date
expectedDeliveryDatestring.date-timeNoExpected delivery date
subtotalunknownNoSubtotal
taxAmountunknownNoTax amount
totalAmountunknownNoTotal amount
shippingAddressstringNoShipping address
notesstringNoNotes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)Yes"standard"Po type
submittedByUserIdunknownNoID of the associated submitted by user
approvedByUserIdunknownNoID of the associated approved by user
approvedAtunknownNoApproved at
rejectedReasonunknownNoRejected reason
actualDeliveryDateunknownNoActual delivery date
trackingNumberunknownNoTracking number
shippingMethodunknownNoShipping method
shippingCostunknownNoShipping cost
internalNotesunknownNoInternal notes
vendorAckAtunknownNoVendor ack at
warehouseIdunknownNoID of the associated warehouse
packingSlipS3KeyunknownNoPacking slip s3key
relatedQuoteS3KeyunknownNoRelated quote s3key
relatedQuoteFileNameunknownNoRelated quote file name
relatedQuoteNumberunknownNoRelated quote number
sourceQuoteIdunknownNoID of the associated source quote
directionenum(outbound, inbound)Yes"outbound"Direction
sourceVendorQuoteIdunknownNoID of the associated source vendor quote
workspaceIdstringNoID of the associated workspace
visibilityModeunknownNoVisibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
vendorIdunknownNoID of the associated vendor
projectIdstringNoID of the associated project
customerIdunknownNoID of the associated customer
workOrderIdstringNoID of the associated work order
orderDatestring.date-timeNoOrder date
expectedDeliveryDatestring.date-timeNoExpected delivery date
subtotalunknownNoSubtotal
taxAmountunknownNoTax amount
totalAmountunknownNoTotal amount
shippingAddressstringNoShipping address
notesstringNoNotes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)NoPo type
trackingNumberunknownNoTracking number
shippingMethodunknownNoShipping method
shippingCostunknownNoShipping cost
internalNotesunknownNoInternal notes
warehouseIdunknownNoID of the associated warehouse
relatedQuoteNumberunknownNoRelated quote number
sourceQuoteIdunknownNoID of the associated source quote
sourceVendorQuoteIdunknownNoID of the associated source vendor quote

On this page