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
Get field value history
Create an opportunity
Update an opportunity
Retrieve an opportunity
List opportunities
Delete an opportunity
ModelsExpand Collapse
class OpportunityCreateResponse: …
fields: Dict[str, Fields]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.
class OpportunityDefinitionsResponse: …
field_definitions: Dict[str, FieldDefinitions]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.
type_configuration: FieldDefinitionsTypeConfigurationType-specific configuration (e.g. select options, currency code).
Type-specific configuration (e.g. select options, currency code).
class OpportunityDeleteResponse: …
fields: Dict[str, Fields]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.
class OpportunityFieldHistoryResponse: …
data: List[Data]Recorded values for the field, newest first.
Recorded values for the field, newest first.
Human-readable rendering of the value (e.g. a select option label), suitable for display.
True for the record’s original value. Only set when the full history fits in the response (never on a truncated/paginated page).
class OpportunityListResponse: …
data: List[Data]Array of entity objects for the current page.
Array of entity objects for the current page.
fields: Dict[str, DataFields]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.
class OpportunityRetrieveResponse: …
fields: Dict[str, Fields]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.
class OpportunityUpdateResponse: …
fields: Dict[str, Fields]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.