ZRM Docs
Domain Model

Quote

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
nameunknownYesName
opportunityIdstringYesID of the associated opportunity
siteIdunknownYesID of the associated site
siteAddressunknownYesSite address
versionNumberintegerYesVersion number
quoteNumberunknownYesQuote number
statusenum(draft, sent, accepted, changes_requested, paid, rejected, expired)YesStatus
pricingModelenum(fixed, time_and_materials, hybrid)YesPricing model
subtotalMaterialunknownYesSubtotal material
subtotalLaborunknownYesSubtotal labor
subtotalRecurringunknownYesSubtotal recurring
grossMarginEstimateunknownYesGross margin estimate
assumptionsunknownYesAssumptions
exclusionsunknownYesExclusions
aiNarrativeunknownYesAi narrative
generatedByAgentRoleunknownYesGenerated by agent role
termsunknownYesTerms
expirationDateunknownYesExpiration date
preparedByUserIdunknownYesID of the associated prepared by user
approvedByUserIdunknownYesID of the associated approved by user
scopeOfWorkunknownYesScope of work
warrantyTermsunknownYesWarranty terms
permitRequiredbooleanYesPermit required
permitNotesunknownYesPermit notes
insuranceRequirementsunknownYesInsurance requirements
projectTimelineEstimateunknownYesProject timeline estimate
internalNotesunknownYesInternal notes
approvalNotesunknownYesApproval notes
sentAtunknownYesSent at
respondedAtunknownYesResponded at
customerPoNumberunknownYesCustomer po number
revisionNotesunknownYesRevision notes
discountTypeunknownYesDiscount type
discountValueunknownYesDiscount value
taxExemptbooleanYesTax exempt
paymentTermTemplateIdunknownYesID of the associated payment term template
discountTotalunknownYesDiscount total
taxTotalunknownYesTax total
grandTotalunknownYesGrand total
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
nameunknownNoName
customerIdstringNoID of the associated customer
opportunityIdunknownNoID of the associated opportunity
siteIdunknownNoID of the associated site
siteAddressunknownNoSite address
statusenum(draft, sent, accepted, changes_requested, paid, rejected, expired)Yes"draft"Status
pricingModelenum(fixed, time_and_materials, hybrid)YesPricing model
assumptionsunknownNoAssumptions
exclusionsunknownNoExclusions
aiNarrativeunknownNoAi narrative
generatedByAgentRoleunknownNoGenerated by agent role
termsunknownNoTerms
expirationDateunknownNoExpiration date
preparedByUserIdunknownNoID of the associated prepared by user
approvedByUserIdunknownNoID of the associated approved by user
scopeOfWorkunknownNoScope of work
warrantyTermsunknownNoWarranty terms
permitRequiredbooleanYesfalsePermit required
permitNotesunknownNoPermit notes
insuranceRequirementsunknownNoInsurance requirements
projectTimelineEstimateunknownNoProject timeline estimate
internalNotesunknownNoInternal notes
approvalNotesunknownNoApproval notes
customerPoNumberunknownNoCustomer po number
revisionNotesunknownNoRevision notes
discountTypeunknownNoDiscount type
discountValueunknownNoDiscount value
taxExemptbooleanYesfalseTax exempt
paymentTermTemplateIdunknownNoID of the associated payment term template
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
nameunknownNoName
customerIdstringNoID of the associated customer
opportunityIdunknownNoID of the associated opportunity
siteIdunknownNoID of the associated site
siteAddressunknownNoSite address
statusenum(draft, sent, accepted, changes_requested, paid, rejected, expired)No"draft"Status
pricingModelenum(fixed, time_and_materials, hybrid)NoPricing model
assumptionsunknownNoAssumptions
exclusionsunknownNoExclusions
aiNarrativeunknownNoAi narrative
generatedByAgentRoleunknownNoGenerated by agent role
termsunknownNoTerms
expirationDateunknownNoExpiration date
preparedByUserIdunknownNoID of the associated prepared by user
approvedByUserIdunknownNoID of the associated approved by user
scopeOfWorkunknownNoScope of work
warrantyTermsunknownNoWarranty terms
permitRequiredbooleanNofalsePermit required
permitNotesunknownNoPermit notes
insuranceRequirementsunknownNoInsurance requirements
projectTimelineEstimateunknownNoProject timeline estimate
internalNotesunknownNoInternal notes
approvalNotesunknownNoApproval notes
customerPoNumberunknownNoCustomer po number
revisionNotesunknownNoRevision notes
discountTypeunknownNoDiscount type
discountValueunknownNoDiscount value
taxExemptbooleanNofalseTax exempt
paymentTermTemplateIdunknownNoID of the associated payment term template

On this page