A relationship that links a contact to a client and controls which communications the contact receives.
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
id | integer | — | No | Unique relationship identifier. | 9001 |
pms_ref | string | — | Yes | Practice-management-system reference. | "CC-10001" |
active | boolean | — | No | Whether the relationship is active. | true |
client_id | integer | — | No | Client identifier. | 1001 |
contact_id | integer | — | No | Contact identifier. | 2001 |
relationship | string | — | Yes | Contact's relationship to the client. | "OWNER" |
receives_invoice | boolean | — | Yes | Whether the contact receives invoices. | true |
receives_statement | boolean | — | Yes | Whether the contact receives statements. | true |
receives_payment_confirmation | boolean | — | Yes | Whether the contact receives payment confirmations. | false |
sys_refs | object | map | Yes | References in external systems. | {} |
created_at | string | date-time (ISO 8601) | Yes | Record creation timestamp. | "2025-01-02T03:04:05Z" |
updated_at | string | date-time (ISO 8601) | Yes | Last modification timestamp. | "2025-01-02T03:04:05Z" |
version | integer | — | Yes | Record version. | 1 |
inactivated_at | string | date-time (ISO 8601, no offset) | Yes | When the link between the contact and the client was inactivated. | — |
is_managed_by_aiwyn | boolean | — | No | Whether Aiwyn manages the record's lifecycle. | false |
is_created_by_aiwyn | boolean | — | No | Whether the record was created in Aiwyn. | false |
custom_field_values | object | map | Yes | Firm-defined custom fields, keyed by custom field code. | — |