Skip to main content

Leads (Relationship) - DEPRECATED

Entity›Relationship›CommercialRelationship.Lead
Deprecated

This Relationship-based Lead is deprecated. New integrations should use the Lead activity (Activity_Lead) instead.

A Lead is a qualified contact in your sales funnel — someone (or some company) that has been verified as a potential customer worth pursuing. Leads come after raw Suspects are qualified, and ahead of Hot Prospects and Prospects once engagement deepens.

The TribeCRM commercial funnel is: Suspect → Lead → HotProspect → Prospect → Customer.

Two variants
  • Organisation Lead — Relationship_Organization_CommercialRelationship_Lead — when the lead is a company.
  • Person Lead — Relationship_Person_CommercialRelationship_Lead — when the lead is an individual (B2C).

Both share the same fields and lifecycle; the only difference is which Relation subtype is linked (Organization vs Person).

Endpoints​

List Leads​

Retrieve a paginated list of leads.

Organisation (B2B)

GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead

Person (B2C)

GET/v1/odata/Relationship_Person_CommercialRelationship_Lead

Single Lead​

Retrieve a single lead by its ID.

Organisation (B2B)

GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead({id})
GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead({id})?$expand=Organization,Relation

Person (B2C)

GET/v1/odata/Relationship_Person_CommercialRelationship_Lead({id})
GET/v1/odata/Relationship_Person_CommercialRelationship_Lead({id})?$expand=Person,Relation

Create Lead with a New Relation​

Create a lead relationship and its underlying Organisation or Person in one call.

Organisation (B2B)

POST/v1/odata/Relationship_Organization_CommercialRelationship_Lead

Person (B2C)

POST/v1/odata/Relationship_Person_CommercialRelationship_Lead
  • Relation.ID — The parent Relation (typically your own organisation).
  • Organization / Person — The child Relation fields (created automatically). For Person, LastName is mandatory.

Create Lead from an Existing Relation​

Link an existing Organisation or Person as a lead.

Organisation (B2B)

POST/v1/odata/Relationship_Organization_CommercialRelationship_Lead

Person (B2C)

POST/v1/odata/Relationship_Person_CommercialRelationship_Lead

Update Lead​

Update an existing lead relationship. Provide only the fields to update.

Organisation (B2B)

PUT/v1/odata/Relationship_Organization_CommercialRelationship_Lead({id})

Person (B2C)

PUT/v1/odata/Relationship_Person_CommercialRelationship_Lead({id})

Convert Lead to next funnel stage​

Promote a Lead to a Hot Prospect, Prospect, or Customer by changing its _Type. All linked activities, notes, and history are preserved.

Organisation (B2B)

POST/v1/odata/Relationship_Organization_CommercialRelationship_Lead

Person (B2C)

POST/v1/odata/Relationship_Person_CommercialRelationship_Lead

Use the Relationship ID, not any of the Relation IDs.

note

Type conversion only works within the same Relation type: an Organisation Lead can become an Organisation Hot Prospect / Prospect / Customer, a Person Lead can become a Person Hot Prospect / Prospect / Customer. You cannot cross-convert between Organisation and Person variants.

Delete Lead​

Delete a lead relationship by ID. This removes the lead role but does not delete the underlying Organisation or Person.

Organisation (B2B)

DELETE/v1/odata/Relationship_Organization_CommercialRelationship_Lead({id})

Person (B2C)

DELETE/v1/odata/Relationship_Person_CommercialRelationship_Lead({id})

Fields​

Standard Fields (all entities)​

FieldTypeDescription
IDGuidPrimary key (UUID)
_TypeStringEntity type discriminator (Relationship.Organization.CommercialRelationship.Lead or Relationship.Person.CommercialRelationship.Lead)
_NameStringComputed display name
SortIndexDoubleSorting order
CreationDateDateTimeOffsetDate the record was created
LastMutationDateDateTimeOffsetDate of the last modification
IsActiveBooleanWhether the record is active
IsClosedBooleanWhether the record is closed

Lead Fields​

FieldTypeDescription
NameStringLead display name

Relationships​

RelationshipTarget EntityCardinalityDescription
RelationRelationN:1Parent relation (your organisation)
OrganizationRelation.OrganizationN:1B2B only: the lead organisation
PersonRelation.PersonN:1B2C only: the lead person
StatusDatastoreN:1Lead status

Expanding Relationships​

GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead({id})?$expand=Organization
GET/v1/odata/Relationship_Person_CommercialRelationship_Lead({id})?$expand=Person
GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead({id})/Relation

Filtering Examples​

The same $filter syntax applies to both Organisation and Person variants — substitute the entity URL accordingly.

GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead?$filter=contains(Name, '{Name}')&$top={top}
GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead?$filter=ID eq {ID}-43a4-483b-82e1-4ccf8bd1526c&$top={top}
GET/v1/odata/Relationship_Person_CommercialRelationship_Lead?$filter=CreationDate gt {CreationDate}&$top={top}
GET/v1/odata/Relationship_Organization_CommercialRelationship_Lead?$filter=IsClosed eq {IsClosed}&$top={top}

Custom Query​

Build any OData query yourself. The endpoint below is prefilled with a real-world example — a name search across the linked Person, with a nested $expand that pulls the person (plus their address, country, and picture), the parent relation, and the account manager.

Open Run and edit the whole request inline — including the entity set (e.g. swap Relationship_Person_… for Relationship_Organization_…). Change the $filter, add $select, adjust $top, or extend the $expand. Type $ for suggestions; use ↺ Reset to restore this example.

GET/v1/odata/Relationship_Person_CommercialRelationship_Lead?$filter=contains(Person/FirstName, 'John') and contains(Person/LastName, 'Doe')&$top=10&$expand=Person($expand=Address($expand=Country),Picture),Relation($select=_Name),AccountManager($select=Name)