Skip to content

Deal

A potential sale to an Organization or a Person, tracked through a Pipeline, with an amount, a probability and an expected close. Won or lost is the status category.

PackCRM
Versionv1 (latest)
URNurn:postware:crm:deal
Identityidentifiers
Status categoriesopen, won, lost

Fields

FieldTypeReqNotes
namestringyes
organizationRef<Organization>no
peopleobject[]no{person: Ref<Person>, primary?: bool, role?: string}
pipelineRef<Pipeline>yes
stagestringyesa stage key of the pipeline
statusStatus(open|won|lost)yescategory defaults from the stage's category; default map[category:open]
amountMoneyno
probabilitydecimalno0 to 1; defaults from the stage
expected_closedateno
closed_atdatetimenoset when status.category leaves open
descriptiontextno

Events

deal.won when status.category becomes won; deal.lost when status.category becomes lost.

Extensions

ExtensionTypeNotes
ext.crm.deal_sourcestringWhere this deal came from: the channel, campaign or referral that produced the opportunity. Named deal_source because the envelope's source object holds import provenance.
ext.crm.line_itemsobjectThe products on the deal before a quote or invoice exists: an object { lines: [ { product (a Product id), description, quantity (decimal string), unit_price { amount, currency } } ] }. Quantities and prices belong on the Invoice once one exists.
ext.crm.lost_reasonstringWhy the deal was lost, in the team's own words or vocabulary.
ext.crm.won_reasonstringWhy the deal was won, in the team's own words or vocabulary.