Opportunity
Opportunities represent potential deals or sales in Lightfield. Each opportunity belongs to an account and can have tasks and notes associated with it.
Get opportunity field definitions
Create an opportunity
Update an opportunity
Retrieve an opportunity
List opportunities
ModelsExpand Collapse
OpportunityCreateResponse object { id, createdAt, fields, 4 more }
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
OpportunityDefinitionsResponse object { fieldDefinitions, objectType, relationshipDefinitions }
fieldDefinitions: map[object { description, label, typeConfiguration, 3 more } ]Map of field keys to their definitions, including both system and custom fields.
Map of field keys to their definitions, including both system and custom fields.
typeConfiguration: object { currency, handleService, multipleValues, 2 more } Type-specific configuration (e.g. select options, currency code).
Type-specific configuration (e.g. select options, currency code).
OpportunityListResponse object { data, object, totalCount }
data: array of object { id, createdAt, fields, 4 more } Array of entity objects for the current page.
Array of entity objects for the current page.
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
OpportunityRetrieveResponse object { id, createdAt, fields, 4 more }
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
OpportunityUpdateResponse object { id, createdAt, fields, 4 more }
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.