ZRM Docs
Domain Model

Opportunity

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
customerIdstringYesID of the associated customer
primaryContactIdstringNoID of the associated primary contact
siteIdstringNoID of the associated site
titlestringYesTitle
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)YesStage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)YesPipeline type
sourceenum(referral, website, cold_call, existing_customer, partner, trade_show, portal_request, other)NoSource
estimatedValuenumberNoEstimated value
expectedCloseDatestring.date-timeNoExpected close date
probabilityintegerNoProbability
solutionFamiliesstring[]NoSolution families
scopeSummarystringNoScope summary
competitorNotesstringNoCompetitor notes
winLossReasonstringNoWin loss reason
nextStepDescriptionstringNoNext step description
nextStepDatestring.date-timeNoNext step date
bidDueDatestring.date-timeNoBid due date
budgetConfirmedbooleanYesBudget confirmed
priorityenum(low, medium, high, urgent)NoPriority
lostReasonCategoryenum(price, timing, competitor, scope_mismatch, no_decision, relationship, other)NoLost reason category
technicalRequirementsstringNoTechnical requirements
weightedValueunknownYesWeighted value
closedAtunknownYesClosed at
ownerUserIdstringNoID of the associated owner user
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringYesID of the associated customer
primaryContactIdstringNoID of the associated primary contact
siteIdstringNoID of the associated site
titlestringYesTitle
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)Yes"lead"Stage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)YesPipeline type
sourceenum(referral, website, cold_call, existing_customer, partner, trade_show, portal_request, other)NoSource
estimatedValuenumberNoEstimated value
expectedCloseDatestring.date-timeNoExpected close date
probabilityintegerNoProbability
solutionFamiliesstring[]NoSolution families
scopeSummarystringNoScope summary
competitorNotesstringNoCompetitor notes
winLossReasonstringNoWin loss reason
nextStepDescriptionstringNoNext step description
nextStepDatestring.date-timeNoNext step date
bidDueDatestring.date-timeNoBid due date
budgetConfirmedbooleanYesfalseBudget confirmed
priorityenum(low, medium, high, urgent)NoPriority
lostReasonCategoryenum(price, timing, competitor, scope_mismatch, no_decision, relationship, other)NoLost reason category
technicalRequirementsstringNoTechnical requirements
ownerUserIdstringNoID of the associated owner user
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNoID of the associated customer
primaryContactIdstringNoID of the associated primary contact
siteIdstringNoID of the associated site
titlestringNoTitle
stageenum(lead, qualified, survey, proposal, negotiation, won, lost)No"lead"Stage
pipelineTypeenum(new_construction, retrofit, service_agreement, expansion, other)NoPipeline type
sourceenum(referral, website, cold_call, existing_customer, partner, trade_show, portal_request, other)NoSource
estimatedValuenumberNoEstimated value
expectedCloseDatestring.date-timeNoExpected close date
probabilityintegerNoProbability
solutionFamiliesstring[]NoSolution families
scopeSummarystringNoScope summary
competitorNotesstringNoCompetitor notes
winLossReasonstringNoWin loss reason
nextStepDescriptionstringNoNext step description
nextStepDatestring.date-timeNoNext step date
bidDueDatestring.date-timeNoBid due date
budgetConfirmedbooleanNofalseBudget confirmed
priorityenum(low, medium, high, urgent)NoPriority
lostReasonCategoryenum(price, timing, competitor, scope_mismatch, no_decision, relationship, other)NoLost reason category
technicalRequirementsstringNoTechnical requirements
ownerUserIdstringNoID of the associated owner user

On this page