Space Docs
Domain Model

Invoice

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
customerIdstringYes—ID of the associated customer
invoiceNumberstringYes—Invoice number
workOrderIdstringNo—ID of the associated work order
projectIdstringNo—ID of the associated project
maintenancePlanIdstringNo—ID of the associated maintenance plan
quoteIdstringNo—ID of the associated quote
projectMilestoneIdstringNo—ID of the associated project milestone
monitoringAccountIdstringNo—ID of the associated monitoring account
statusenum(draft, pending_approval, approved, sent, partially_paid, paid, overdue, void, canceled)Yes—Status
issueDatestring.date-timeNo—Issue date
dueDatestring.date-timeNo—Due date
subtotalunknownNo—Subtotal
taxAmountunknownNo—Tax amount
totalAmountunknownNo—Total amount
amountPaidunknownNo—Amount paid
stripeCustomerIdstringNo—ID of the associated stripe customer
contactIdstringNo—ID of the associated contact
sentAtunknownNo—Sent at
viewedAtunknownNo—Viewed at
pdfS3Keystring,nullNo—Pdf s3key
personalMessageunknownNo—Personal message
stripePaymentIntentIdunknownNo—ID of the associated stripe payment intent
stripeCheckoutSessionIdunknownNo—ID of the associated stripe checkout session
paymentUrlstring,nullNo—Payment url
notesstringNo—Notes
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringYes—ID of the associated customer
invoiceNumberstringYes—Invoice number
workOrderIdunknownNo—ID of the associated work order
projectIdunknownNo—ID of the associated project
maintenancePlanIdstringNo—ID of the associated maintenance plan
quoteIdunknownNo—ID of the associated quote
projectMilestoneIdstringNo—ID of the associated project milestone
monitoringAccountIdunknownNo—ID of the associated monitoring account
statusenum(draft, pending_approval, approved, sent, partially_paid, paid, overdue, void, canceled)Yes"draft"Status
issueDateunknownNo—Issue date
dueDateunknownNo—Due date
taxAmountunknownNo—Tax amount
amountPaidunknownNo—Amount paid
stripeCustomerIdstringNo—ID of the associated stripe customer
contactIdunknownNo—ID of the associated contact
sentAtunknownNo—Sent at
viewedAtunknownNo—Viewed at
pdfS3Keystring,nullNo—Pdf s3key
personalMessageunknownNo—Personal message
stripePaymentIntentIdunknownNo—ID of the associated stripe payment intent
stripeCheckoutSessionIdunknownNo—ID of the associated stripe checkout session
paymentUrlstring,nullNo—Payment url
notesstring,nullNo—Notes
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNo—ID of the associated customer
workOrderIdunknownNo—ID of the associated work order
projectIdunknownNo—ID of the associated project
maintenancePlanIdstringNo—ID of the associated maintenance plan
quoteIdunknownNo—ID of the associated quote
projectMilestoneIdstringNo—ID of the associated project milestone
monitoringAccountIdunknownNo—ID of the associated monitoring account
statusenum(draft, pending_approval, approved, sent, partially_paid, paid, overdue, void, canceled)No—Status
issueDateunknownNo—Issue date
dueDateunknownNo—Due date
taxAmountunknownNo—Tax amount
amountPaidunknownNo—Amount paid
stripeCustomerIdstringNo—ID of the associated stripe customer
contactIdunknownNo—ID of the associated contact
sentAtunknownNo—Sent at
viewedAtunknownNo—Viewed at
pdfS3Keystring,nullNo—Pdf s3key
personalMessageunknownNo—Personal message
stripePaymentIntentIdunknownNo—ID of the associated stripe payment intent
stripeCheckoutSessionIdunknownNo—ID of the associated stripe checkout session
paymentUrlstring,nullNo—Payment url
notesstring,nullNo—Notes

On this page