Skip to main content

Customers

EntityRelationshipCommercialRelationship.Customer

A Customer is the final stage of the commercial funnel — an Organisation or Person that has signed a deal with your business. Customer relationships store the business-critical fields used by invoices, subscriptions, and account management: account manager, payment terms, status, price list, owners.

The TribeCRM commercial funnel is: SuspectLeadHotProspectProspect → Customer.

Two variants
  • Organisation CustomerRelationship_Organization_CommercialRelationship_Customer — when the customer is a company (B2B).
  • Person CustomerRelationship_Person_CommercialRelationship_Customer — when the customer is an individual (B2C).

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

Not to be confused with "Organisations" or "Persons"

A Customer is a Relationship — it defines the role an Organisation or Person plays in your business. The Organisation or Person itself (Relation.Organization / Relation.Person) is the underlying entity record. To create a Customer, link an Organisation or Person through this Relationship.

Endpoints

List Customers

Retrieve a paginated list of customers.

Organisation (B2B)

GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer

Person (B2C)

GET/v1/odata/Relationship_Person_CommercialRelationship_Customer

Single Customer

Retrieve a single customer by its ID.

Organisation (B2B)

GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer({id})
GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer({id})?$expand=Organization,AccountManager

Person (B2C)

GET/v1/odata/Relationship_Person_CommercialRelationship_Customer({id})
GET/v1/odata/Relationship_Person_CommercialRelationship_Customer({id})?$expand=Person,AccountManager

Create Customer with a New Relation

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

Organisation (B2B)

POST/v1/odata/Relationship_Organization_CommercialRelationship_Customer

Person (B2C)

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

Create Customer from an Existing Relation

Link an existing Organisation or Person as a customer.

Organisation (B2B)

POST/v1/odata/Relationship_Organization_CommercialRelationship_Customer

Person (B2C)

POST/v1/odata/Relationship_Person_CommercialRelationship_Customer

Update Customer

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

Organisation (B2B)

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

Person (B2C)

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

Upgrade a previous stage to Customer

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

Organisation (B2B) — upgrade an Organisation Lead to Customer:

POST/v1/odata/Relationship_Organization_CommercialRelationship_Lead

Person (B2C) — upgrade a Person Lead to Customer:

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/HotProspect/Prospect can become an Organisation Customer, a Person Lead/HotProspect/Prospect can become a Person Customer. You cannot cross-convert between Organisation and Person variants.

Delete Customer

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

Organisation (B2B)

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

Person (B2C)

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

Fields

Standard Fields (all entities)

FieldTypeDescription
IDGuidPrimary key (UUID)
_TypeStringEntity type discriminator (Relationship.Organization.CommercialRelationship.Customer or Relationship.Person.CommercialRelationship.Customer)
_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

Customer Fields

FieldTypeDescription
NameStringCustomer display name
SortNameStringSortable name variant (Person variant)
PaymentTermInDaysDoublePayment term in days
DoNotSendInvoiceRemindersBooleanOpt out of invoice reminders
MailingOptOutBooleanOpt out of mailings
UpgradeDateDateTimeOffsetDate the relationship was upgraded (e.g. from Lead)
DowngradeDateDateTimeOffsetDate the relationship was downgraded
IsFormerBooleanWhether this is a former customer
FormerDateDateTimeOffsetDate the customer became former

Relationships

RelationshipTarget EntityCardinalityDescription
RelationRelationN:1Parent relation (your organisation)
OrganizationRelation.OrganizationN:1B2B only: the customer organisation
PersonRelation.PersonN:1B2C only: the customer person
AccountManagerEmployeeN:1Assigned account manager
StatusDatastoreN:1Customer status
OwnersEmployee1:NOwners
PriceListPriceListN:1Assigned price list
ActivitiesActivity1:NLinked activities
AttachmentsAttachment1:NAttached files
NotesNote1:NNotes
LabelsLabel1:NLabels

Expanding Relationships

GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer({id})?$expand=Organization
GET/v1/odata/Relationship_Person_CommercialRelationship_Customer({id})?$expand=Person
GET/v1/odata/Relationship_Person_CommercialRelationship_Customer?$select=Name,PaymentTermInDays&$expand=Person($select=ID,FirstName,LastName)
GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer({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_Customer?$filter=contains(Name, '{Name}')&$top={top}
GET/v1/odata/Relationship_Person_CommercialRelationship_Customer?$filter=contains(Name, '{Name}')&$top={top}
GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer?$filter=PaymentTermInDays eq {PaymentTermInDays}&$top={top}
GET/v1/odata/Relationship_Person_CommercialRelationship_Customer?$filter=IsFormer eq {IsFormer}&$top={top}
GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer?$filter=CreationDate gt {CreationDate}&$top={top}
GET/v1/odata/Relationship_Organization_CommercialRelationship_Customer?$filter=IsClosed eq {IsClosed}&$top={top}