Space Docs
Domain Model

Purchase Order

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
vendorIdunknownNo—ID of the associated vendor
customerIdunknownNo—ID of the associated customer
poNumberstringYes—Po number
projectIdstringNo—ID of the associated project
workOrderIdstringNo—ID of the associated work order
statusenum(draft, pending_approval, submitted, payment_due, paid, acknowledged, partially_received, received, canceled, in_fulfillment, invoiced, closed)Yes—Status
orderDatestring.date-timeNo—Order date
expectedDeliveryDatestring.date-timeNo—Expected delivery date
subtotalunknownNo—Subtotal
taxAmountunknownNo—Tax amount
totalAmountunknownNo—Total amount
shippingAddressstringNo—Shipping address
notesstringNo—Notes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)Yes"standard"Po type
submittedByUserIdunknownNo—ID of the associated submitted by user
approvedByUserIdunknownNo—ID of the associated approved by user
approvedAtunknownNo—Approved at
rejectedReasonunknownNo—Rejected reason
actualDeliveryDateunknownNo—Actual delivery date
trackingNumberunknownNo—Tracking number
shippingMethodunknownNo—Shipping method
shippingCostunknownNo—Shipping cost
internalNotesstring,nullNo—Internal notes
vendorAckAtunknownNo—Vendor ack at
warehouseIdunknownNo—ID of the associated warehouse
packingSlipS3KeyunknownNo—Packing slip s3key
relatedQuoteS3KeyunknownNo—Related quote s3key
relatedQuoteFileNameunknownNo—Related quote file name
relatedQuoteNumberunknownNo—Related quote number
sourceQuoteIdunknownYes—ID of the associated source quote
directionenum(outbound, inbound)Yes—Direction
sourceVendorQuoteIdunknownYes—ID of the associated source vendor quote
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
vendorIdunknownNo—ID of the associated vendor
poNumberstringYes—Po number
projectIdunknownNo—ID of the associated project
customerIdunknownNo—ID of the associated customer
workOrderIdunknownNo—ID 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
orderDateunknownNo—Order date
expectedDeliveryDateunknownNo—Expected delivery date
subtotalunknownNo—Subtotal
taxAmountunknownNo—Tax amount
totalAmountunknownNo—Total amount
shippingAddressunknownNo—Shipping address
notesunknownNo—Notes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)Yes"standard"Po type
submittedByUserIdunknownNo—ID of the associated submitted by user
approvedByUserIdunknownNo—ID of the associated approved by user
approvedAtunknownNo—Approved at
rejectedReasonunknownNo—Rejected reason
actualDeliveryDateunknownNo—Actual delivery date
trackingNumberunknownNo—Tracking number
shippingMethodunknownNo—Shipping method
shippingCostunknownNo—Shipping cost
internalNotesstring,nullNo—Internal notes
vendorAckAtunknownNo—Vendor ack at
warehouseIdunknownNo—ID of the associated warehouse
packingSlipS3KeyunknownNo—Packing slip s3key
relatedQuoteS3KeyunknownNo—Related quote s3key
relatedQuoteFileNameunknownNo—Related quote file name
relatedQuoteNumberunknownNo—Related quote number
sourceQuoteIdunknownNo—ID of the associated source quote
directionenum(outbound, inbound)Yes"outbound"Direction
sourceVendorQuoteIdunknownNo—ID of the associated source vendor quote
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
vendorIdunknownNo—ID of the associated vendor
projectIdunknownNo—ID of the associated project
customerIdunknownNo—ID of the associated customer
workOrderIdunknownNo—ID of the associated work order
orderDateunknownNo—Order date
expectedDeliveryDateunknownNo—Expected delivery date
subtotalunknownNo—Subtotal
taxAmountunknownNo—Tax amount
totalAmountunknownNo—Total amount
shippingAddressunknownNo—Shipping address
notesunknownNo—Notes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)No—Po type
trackingNumberunknownNo—Tracking number
shippingMethodunknownNo—Shipping method
shippingCostunknownNo—Shipping cost
internalNotesstring,nullNo—Internal notes
warehouseIdunknownNo—ID of the associated warehouse
relatedQuoteNumberunknownNo—Related quote number
sourceQuoteIdunknownNo—ID of the associated source quote
sourceVendorQuoteIdunknownNo—ID of the associated source vendor quote

On this page