Skip to main content

api_relations

⚠️ Important: Some fields in this table will be deprecated on Wednesday, January 7th, 2025. Please review the Deprecated Fields section below and migrate to the recommended alternatives.

This table provides relation (customer/contact) data from Simplicate.

Description

The api_relations table exposes relation entities from Simplicate, which represent customers, contacts, and other business relationships. Internal relations are excluded from this table.

Fields

Field NameTypeDescription
relation_idIntegerUnique identifier for the business relation
account_manager_idIntegerIdentifier of the account manager (employee) for this relation
customer_group_organization_idIntegerIdentifier of the customer group organization
relationStringName of the company or organization
relation_numberStringHuman-readable relation number or customer code
relation_typeStringType of business relation (e.g., customer, prospect, supplier)
relation_industryStringIndustry sector or business category of the relation
customer_groupStringName of the customer group this relation belongs to

Deprecated Fields

⚠️ Deprecation Notice: The following fields will be deprecated on Wednesday, January 7th, 2025. Please migrate to the recommended alternatives.

Deprecated FieldTypeRecommended Alternative
key_relation_idIntegerrelation_id
key_account_manager_idIntegeraccount_manager_id
key_customer_group_organization_idIntegercustomer_group_organization_id
relation_nameStringrelation
industryStringrelation_industry
customer_group_nameStringcustomer_group
  • api_projects - Projects via relation_id
  • api_invoices - Invoices via relation_id
  • api_invoicelines - Invoice lines via relation_id
  • api_employees - Account manager via account_manager_id
  • api_relation_custom_fields - Custom fields via relation_id