API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · parties

Party Schema

Schema-ID
party
Collection
parties
Permissions
  • Lezenparty_view
  • Aanmakenparty_create
  • Wijzigenparty_edit
  • Verwijderenparty_delete

Velden

Party Schema

parties4 permissions

Schema for validating party entities

partyTypestringvereist

Type of party

ORGANIZATIONPERSON
namestringvereist

Party name

1–200 tekens
displayNamestringvereist

Display name

1–200 tekens
abbreviationstringoptioneel

Unique ALL CAPS abbreviation (e.g. ITF)

2–10 tekensPatternnullable
isCustomerbooleanoptioneel

Whether party is a customer

Default: falsenullable
isProspectbooleanoptioneel

Whether party is a prospect (Interessent) — potential customer not yet converted

Default: falsenullable
isSupplierbooleanoptioneel

Whether party is a supplier

Default: falsenullable
isApproverbooleanoptioneel

Whether this person may approve customer-portal orders (used by approval-policy supervisor-chain resolution).

Default: falsenullable
createdViaInvitationbooleanoptioneel

True when this PERSON party was created solely as part of a portal-invite flow (not via the Kontakte-Tab). Used by the revoke handler to clean up stub persons whose only purpose was the invitation, when that invitation gets cancelled before acceptance.

Default: falsenullable
approvalLimitnumberoptioneel

Maximum order net total (EUR) this person may approve. null = unlimited. Only meaningful when isApprover=true.

≥ 0nullable
addressesobject[]optioneel
Default: []nullable
_iduuidoptioneel

Address ID (UUIDv7, auto-generated)

read-only
sourceRefobjectoptioneel

Origin of this address when it represents an entity that exists as a separate record in the source system (e.g. a TANSS branch imported as an address). Typed-prefixed like party sourceRefs: `company:<id>`.

nullable
systemstringvereist
max. 50 tekens
idstringvereist
max. 200 tekens
namestringoptioneel

Site name (e.g. Niederlassung Berlin)

max. 200 tekensnullable
typestringoptioneel

Address type

MAINBRANCHDELIVERYBILLINGDUNNINGOTHER
Default: "MAIN"
labelstringoptioneel

Custom label (e.g. Standort Berlin)

max. 100 tekensnullable
streetstringvereist
1–200 tekens
zipCodestringvereist
1–20 tekens
citystringvereist
1–100 tekens
statestringoptioneel
max. 100 tekensnullable
countryCodestringvereist

Two-letter country code (ISO 3166-1 alpha-2)

Pattern
latitudenumberoptioneel

GPS latitude (WGS84)

-90 – 90nullable
longitudenumberoptioneel

GPS longitude (WGS84)

-180 – 180nullable
invoiceReferencestringoptioneel

Free reference/SAP number for this address (e.g. customer's own supplier number). Printed on invoices when showInvoiceReference is true.

max. 100 tekensnullable
showInvoiceReferencebooleanoptioneel

Whether invoiceReference is printed on invoices using this address.

Default: false
separateBillingbooleanoptioneel

Bill this site separately: its bookings get their own performance record and invoice (same customer, site address as recipient). Missing = billed with the customer.

Default: false
languagestringoptioneel

Communication language for tickets of this site (ADR 0875). null = inherit from customer/tenant.

deenesfrnlnull
nullable
phonestringoptioneel

Central phone number of this site (e.g. the front desk of a branch).

max. 50 tekensnullable
emailemailoptioneel

Email address of this address entry (e.g. the mailbox of a branch, or the accounting mailbox of a billing address).

max. 254 tekensnullable
contactChannelsobject[]optioneel
Default: []nullable
typestringvereist
PHONEMOBILEEMAILFAXURLOTHER
valuestringvereist
1–255 tekens
labelstringoptioneel
max. 50 tekensnullable
isPrimarybooleanoptioneel
Default: false
purposesstring[]optioneel

Designated purposes for this contact channel (e.g. invoice emails, IT emails)

Default: []nullable
providerAccountsobject[]optioneel

Numbers under which this ORGANIZATION is known at a third-party provider (customer number, contract number, line id). Internal only — never exposed to portal users. Passwords belong in the vault (secretId), never here (ADR 1101).

max. 100 itemsnullable
_iduuidoptioneel
read-only
providerPartyIduuidoptioneel

Provider as an ORGANIZATION party in the CRM (preferred).

nullable
providerNamestringoptioneel

Free-text provider name when it is not in the CRM; copy of the provider name otherwise.

max. 200 tekensnullable
kindstringoptioneel
CUSTOMER_NUMBERCONTRACT_NUMBERLINE_IDOTHERnull
nullable
numberstringvereist
1–100 tekens
labelstringoptioneel
max. 100 tekensnullable
partyAddressIduuidoptioneel

Site (addresses[]._id) the number belongs to; null = whole company.

nullable
secretIduuidoptioneel

Vault entry (secrets) holding the customer password / PIN.

nullable
notesstringoptioneel
max. 1000 tekensnullable
microsoftTenantsobject[]optioneel

Microsoft 365 tenants of this ORGANIZATION, used only to build links into the Microsoft admin portals. Holds no credentials. Internal only.

max. 20 itemsnullable
_iduuidoptioneel
read-only
tenantIduuidvereist

Microsoft Entra tenant id.

read-only
initialDomainstringvereist

Initial domain of the tenant (contoso.onmicrosoft.com).

max. 100 tekensPattern
labelstringoptioneel
max. 100 tekensnullable
checkedAtdatetimeoptioneel

Last successful check against Microsoft.

nullable
isPartnerbooleanoptioneel

Whether party is a partner

Default: falsenullable
parentPartyIduuidoptioneel

Parent ORGANIZATION party (corporate group hierarchy). Must be null on PERSON parties — see ADR 0098.

nullable
partyAddressIduuidoptioneel

Address ID at the parent organization where this person is located

Default: nullnullable
websitestringoptioneel

Website URL

max. 500 tekensnullable
emailDomainsstring[]optioneel

Mail domains of an ORGANIZATION (lowercase, without "@"). Exact-match anchor for attaching auto-provisioned portal users to this company (ADR 0808). Freemail domains are rejected by the party hook. Must be empty on PERSON parties.

max. 20 itemsunieke itemsDefault: []nullable
emailDomainPrimarybooleanoptioneel

When several ORGANIZATIONs share a domain in `emailDomains`, the one carrying this flag wins the domain match (ADR 0808). At most one non-deleted party per tenant and domain may carry it — enforced by the party hook.

Default: falsenullable
businessHoursobjectoptioneel

Customer business/opening hours (Geschäftszeiten)

nullable
weeklyScheduleobjectoptioneel

Opening hours per weekday. Keys: mon,tue,wed,thu,fri,sat,sun. Values: array of {start,end} time slots in HH:MM format. Same shape as business_hours_profile.weeklySchedule.

nullable
monobject[]optioneel
nullable
startstringvereist
Pattern
endstringvereist
Pattern
tueobject[]optioneel
nullable
startstringvereist
Pattern
endstringvereist
Pattern
wedobject[]optioneel
nullable
startstringvereist
Pattern
endstringvereist
Pattern
thuobject[]optioneel
nullable
startstringvereist
Pattern
endstringvereist
Pattern
friobject[]optioneel
nullable
startstringvereist
Pattern
endstringvereist
Pattern
satobject[]optioneel
nullable
startstringvereist
Pattern
endstringvereist
Pattern
sunobject[]optioneel
nullable
startstringvereist
Pattern
endstringvereist
Pattern
notestringoptioneel

Free-text note (e.g. "Mittagspause 12–13 Uhr", "Notdienst 24/7")

max. 500 tekensnullable
taxIdstringoptioneel

Steuernummer (locally issued by Finanzamt, e.g. "12/345/67890"). 10–15 digits, optional slashes; whitespace must be stripped client-side. For the EU VAT ID use vatId instead.

max. 20 tekensPatternnullable
vatIdstringoptioneel

USt-IdNr. / EU VAT identification number (ISO 3166-1 alpha-2 country code + identifier, e.g. "DE123456789"). Must be normalized (uppercase, no whitespace/dots/dashes) before persisting; landesspezifische Format-Validität wird über @codemeta/shared `isValidVatId` zusätzlich am Client geprüft.

max. 20 tekensPatternnullable
notesstringoptioneel

Free-text notes

max. 5000 tekensnullable
firstNamestringoptioneel

First name (for PERSON type)

max. 100 tekensnullable
lastNamestringoptioneel

Last name (for PERSON type)

max. 100 tekensnullable
salutationstringoptioneel

Salutation (for PERSON type)

HerrFrauDivers
nullable
academicTitlestringoptioneel

Academic/honorary title, e.g. "Dr." or "Prof. Dr." (for PERSON type)

max. 60 tekensnullable
jobTitlestringoptioneel

Job title (for PERSON type)

max. 200 tekensnullable
birthDatedateoptioneel

Date of birth as YYYY-MM-DD (for PERSON type)

nullable
preferredLanguagestringoptioneel

Preferred communication language (ISO 639-1). PERSON: language of the contact. ORGANIZATION: customer-wide default for ticket communication (ADR 0875).

aaabaeafakamanarasavayazbabebgbhbibmbnbo
nullable
additionalLanguagesstring[]optioneel

Additional communication languages (ISO 639-1, for PERSON type)

Default: []
postResolutionContactPreferencestringoptioneel

How this party wants to be reached after a ticket is resolved (CALL | MESSAGE | NONE; null = not specified). Set on a PERSON for that contact, or on an ORGANIZATION as the default for its contacts; a PERSON value overrides the company default.

CALLMESSAGENONEnull
nullable
customerNumberstringoptioneel

Customer number

max. 50 tekensnullable
datevDebitorenkontostringoptioneel

Stable DATEV-Debitorenkontonummer (assigned on first DATEV export, persisted for subsequent exports)

max. 10 tekensread-onlynullable
datevKreditorenkontostringoptioneel

Stable DATEV-Kreditorenkontonummer (assigned when this party is referenced from a vendor invoice)

max. 10 tekensread-onlynullable
supplierNumberstringoptioneel

Supplier number (Lieferantennummer)

max. 50 tekensnullable
responsibleUserIduuidoptioneel

Account manager / responsible user (synced with weclapp)

nullable
hasOwnResponsibleUserbooleanoptioneel

PERSON only: true = AM is curated on the person directly; false = AM is derived from the linked organizations via party_relationships. ORGANIZATION: ignored. Documents lacking this field are treated at read time as (responsibleUserId != null), preserving pre-existing data on live tenants.

Default: false
inheritedResponsibleUserIdsuuid[]optioneel

PERSON + hasOwnResponsibleUser=false only: distinct account managers of all linked organizations (driven by recomputePersonResponsibleUser). Server-managed — not writable via the API. Empty array otherwise.

Default: []read-only
teamIduuidoptioneel

Primary technical team (org unit). Automatically mirrored into assignedOrgUnitIds so the team gains access; secondary teams may be added directly via the team management page (ADR 0124, revised).

nullable
assignedOrgUnitIdsuuid[]optioneel

All org units (teams) that have access to this party. Drives the team_member data-scope and the SpiceDB assigned_org_unit relation. Contains teamId plus any extra teams granted access via the team management page.

Default: []
hasOwnTeambooleanoptioneel

PERSON only: true = primary technical team (teamId) is curated on the person directly; false = teamId is derived from the linked organizations via party_relationships (ADR 0318, mirrors hasOwnResponsibleUser). ORGANIZATION: ignored. Documents lacking this field are treated at read time as (teamId != null), preserving pre-existing data on live tenants (no backfill required).

Default: false
inheritedTeamIdsuuid[]optioneel

PERSON + hasOwnTeam=false only: distinct primary technical teams of all linked organizations (driven by recomputePersonTeam). Server-managed — not writable via the API. Empty array otherwise.

Default: []read-only
dispatchPreferredTechniciansOnlybooleanoptioneel

AutoDispatch may only assign technicians marked as preferred for this customer (user_party_affinities.preferredContact). None available → the ticket waits for manual assignment instead of going to the general pool. Missing/false: preferred technicians still go first, others are allowed when none is available.

nullable
classificationstringoptioneel

Customer classification (A = highest priority)

ABCD
nullable
isVipbooleanoptioneel

VIP customer/contact (feature request 2026-10-28). Internal only: highlights the name in the ticket list, ticket boards, ticket detail and party pickers (gold + crown), never shown in the customer portal. Applies to exactly this party — contacts do NOT inherit it from their organization. Missing/null/false = not VIP (no backfill). Codemeta-master, never synced with weclapp.

nullable
tagsstring[]optioneel

Party tags

Default: []nullable
isSelfCompanybooleanoptioneel

Whether this party represents the tenant own company

Default: falseread-only
isInternalCompanybooleanoptioneel

Whether work booked on this party counts as INTERNAL in reports (ADR 1013). Unlike isSelfCompany this flag may be set on MANY parties of a tenant: a Systemhaus whose branches are each kept as their own party record ticks it on all of them. isSelfCompany stays single-valued — it identifies THE legal entity and nine read sites in API and worker resolve it with findOne({ isSelfCompany: true }) for the letterhead, the travel start point, availability, company sites, the mail sender and onboarding; a second match would hand them an arbitrary branch. isSelfCompany: true already implies internal, so readers build { $or: [{ isSelfCompany: true }, { isInternalCompany: true }] } and nobody has to tick both.

Default: falsenullable
travelConfigobjectoptioneel

Travel/distance configuration for this party

nullable
distancesobject[]optioneel
Default: []
ownLocationIdstringvereist

ID of own company location address

ownLocationLabelstringoptioneel

Display label of the own location

max. 200 tekensnullable
customerAddressIduuidoptioneel

Target party address this distance refers to. Null = legacy entry, resolved against the main customer address.

nullable
distanceKmnumbervereist

Distance in kilometers

≥ 0
durationMinutesnumbervereist

Travel duration in minutes

≥ 0
travelAllowanceIduuidoptioneel

Default travel allowance for this route

nullable
calculatedAtdatetimeoptioneel

When the distance was last calculated

nullable
calculationSourcestringoptioneel

How the distance was determined

MANUALOPENROUTESERVICE
nullable
defaultBillingModestringoptioneel

Default billing mode for travel to this party

DISTANCE_BASEDFLAT_RATE
nullable
notesstringoptioneel

Travel configuration notes

max. 1000 tekensnullable
dunningBlockedbooleanoptioneel

Block all dunning for this customer (Mahnsperre)

Default: falsenullable
inactivebooleanoptioneel

Party is retired: kept for historical references but no longer offered in any selector. Absence of the field means active — read filters must use { $ne: true }, never { inactive: false }.

Default: falsenullable
inactiveReasonstringoptioneel

Why the party was set inactive (e.g. "Kunde abgewandert 03/2026").

max. 500 tekensnullable
inactiveAtdatetimeoptioneel

When the party was set inactive. Server-filled by the party beforeUpdate hook, which overwrites any client value.

nullable
inactiveBystringoptioneel

Internal users._id that set the party inactive. Server-filled by the party beforeUpdate hook, which overwrites any client value.

nullable
mergedIntoPartyIduuidoptioneel

The company this party was merged into. Set on the first confirmed merge run and kept through delete/retire so old links can be forwarded.

read-onlynullable
mergedAtdatetimeoptioneel

When the merge into mergedIntoPartyId was started.

read-onlynullable
mergedBystringoptioneel

Internal users._id that started the merge.

read-onlynullable
mergedIntoAddressIduuidoptioneel

Site (addresses[]._id of mergedIntoPartyId) the merged documents were pointed at; null when the merge targeted the company as a whole. Written with mergedIntoPartyId so later batches of the same merge cannot switch sites.

read-onlynullable
billingBlockobjectoptioneel

Billing block (Abrechnungssperre) — when active, invoices and Leistungsnachweise cannot be created for this party

nullable
activebooleanvereist
Default: false
reasonstringoptioneel
max. 1000 tekensnullable
blockedAtdatetimeoptioneel
read-onlynullable
blockedByuuidoptioneel
read-onlynullable
blockedUntildateoptioneel
nullable
contractBillingobjectoptioneel

Collective contract billing (ADR 1280): when collective is true, all contracts of this customer due in the same billing run go onto one invoice. Written only via POST /parties/:id/contract-billing (billing_manage).

read-onlynullable
collectivebooleanvereist
Default: false
sourcestringoptioneel
CODEMETAWECLAPP
Default: "CODEMETA"
updatedAtdatetimeoptioneel
read-onlynullable
serviceBlockobjectoptioneel

Service block (Leistungssperre) — when active, tickets/time-records/calendar-events for this party trigger warnings; time-records require approval

nullable
activebooleanvereist
Default: false
reasonstringoptioneel
max. 1000 tekensnullable
blockedAtdatetimeoptioneel
read-onlynullable
blockedByuuidoptioneel
read-onlynullable
blockedUntildateoptioneel
nullable
weclappBlockobjectoptioneel

Read-only mirror of the weclapp customer block (customerBlocked / customerInsolvent + customerBlockNotice). weclapp-master — set by the weclapp party sync, never edited in Codemeta and never pushed back. When blocked, it triggers both the billing- and service-block warnings (party-block helpers), mirroring the TANSS lockout behaviour.

nullable
blockedbooleanvereist
Default: false
noticestringoptioneel
max. 1000 tekensnullable
syncedAtdatetimeoptioneel
nullable
logoFileIduuidoptioneel

File ID of the party logo (from file storage)

nullable
serviceTypeOverridesobject[]optioneel

Per-customer overrides for service type billing parameters

Default: []nullable
serviceTypeIduuidvereist

Service type to override pricing for

roundingMinutesintegeroptioneel

Override rounding increment for this customer

≥ 1nullable
inclusiveMinutesintegeroptioneel

Override inclusive minutes for this customer

≥ 0nullable
pricingDateBasisstringoptioneel

ADR 0415 — per-customer override of the pricing date basis for this service type: SERVICE_DATE = price at the day the work was performed, BILLING_DATE = price at the day of the billing run. Null falls back to service_type.billing.pricingDateBasis (then SERVICE_DATE).

SERVICE_DATEBILLING_DATEnull
nullable
pricingobject[]optioneel

Customer-specific price schedule — absolute rate or discount, dated (overrides service type defaults)

nullable
validFromdatevereist

Price effective from this date

ratePerHourstringoptioneel

Customer-specific hourly rate. Absolute price — takes precedence over discountPercent when both are set.

Patternnullable
discountPercentnumberoptioneel

Customer discount in percent off the rate that would otherwise apply (article price or service-type mask price). Alternative to ratePerHour (ADR 0411).

0 – 100nullable
flatRateAmountstringoptioneel

Customer-specific flat rate amount

Patternnullable
travelBillingobjectoptioneel

ADR 0480 — customer-wide travel conditions. Third step of the €/km precedence (contract → customer → tenant default → fallback); applies to customers with negotiated rates but no maintenance contract. Same fields as contract.conditions.travelAllowance, deliberately named differently to keep it apart from party.travelConfig (the ADR 0033b distance matrix).

nullable
ratePerKmstringoptioneel

Customer-wide mileage rate in EUR per km (baseline until the first dated entry)

Patternnullable
ratePerKmScheduleobject[]optioneel

Dated customer mileage rates. For a trip the entry with the latest validFrom <= trip date wins; before the first entry the baseline ratePerKm applies. Add a new entry to change the rate so earlier trips keep theirs.

max. 50 itemsnullable
validFromstringvereist
Pattern
ratePerKmstringvereist
Pattern
flatRatestringoptioneel

Customer-wide flat travel fee per assignment

Patternnullable
vehicleBaseFeestringoptioneel

Customer-wide vehicle base fee per assignment

Patternnullable
performanceRecordSettingsobjectoptioneel

ADR 0909 — per-customer presentation of the Leistungsnachweis. Resolved via resolveGroupPositionsByTicket() at generation time and snapshotted on the performance record.

nullable
groupPositionsByTicketbooleanoptioneel

Overrides billingSettings.groupPositionsByTicket for this customer. null/missing = tenant default.

nullable
emergencyServiceBillingstringoptioneel

ADR 0914 — overrides billingSettings.emergencyServiceBilling for this customer. null/missing = tenant default.

COMBINEDSEPARATEnull
nullable
openTicketBillingstringoptioneel

ADR 1209 — overrides billingSettings.openTicketBilling for this customer: ALLOW bills time on still-open tickets, BLOCK waits for ticket close. null/missing = tenant default. Writing it additionally requires ticket_billing_override.

BLOCKALLOWnull
nullable
noticesobject[]optioneel

Persistente Hinweise zur Firma, die kontextabhängig in Tickets, Leistungserfassung oder anderen Workflows als Banner angezeigt werden. Pendant zu TANSS-supportInfos: dort wurden sie beim Auswählen des Kunden als Popup gezeigt; in Codemeta surface wir sie an den Touchpoints, an denen mit dem Kunden gearbeitet wird.

Default: []nullable
_iduuidoptioneel

Notice ID (UUIDv7, auto-generated server-side wenn fehlend)

read-only
namestringoptioneel

Optionale Überschrift des Hinweises (z. B. "Wartung", "Patch Management"). Quelle u. a. die TANSS-„wichtigen Firmeninformationen", wo jeder Eintrag benannt ist. Optional und ohne Default — Alt-Notices haben keinen Namen und werden weiterhin nur als Text gerendert.

max. 200 tekensnullable
textstringvereist

Hinweistext (Plaintext, mehrzeilig erlaubt)

1–5000 tekens
severitystringoptioneel

Visuelle Wichtigkeit. CRITICAL = rotes Banner (entspricht TANSS popup=true), WARNING = gelb, INFO = neutral.

INFOWARNINGCRITICAL
Default: "INFO"
showOnTicketbooleanoptioneel

Banner auf der Ticket-Detail-Seite anzeigen, wenn das Ticket auf diese Firma referenziert (partyId).

Default: true
showOnTimeRecordbooleanoptioneel

Banner im Time-Record-/Leistungserfassungs-Dialog anzeigen, wenn die Leistung auf diese Firma gebucht wird.

Default: true
sourcestringoptioneel

Herkunft des Hinweises (z. B. "TANSS-Import", "TANSS (Headquarter)", "Manuell"). Informativ für den Bearbeiter.

max. 100 tekensnullable
validFromdateoptioneel

Optionaler Beginn des Gültigkeitszeitraums (YYYY-MM-DD, inklusiv). Vor diesem Datum wird der Hinweis an den Touchpoints (Ticket, Leistungserfassung, Detailseiten-Banner) nicht angezeigt. Fehlend/null = ab sofort gültig. Anwendungsfall: zeitgebundene Hinweise wie Betriebsferien.

nullable
validUntildateoptioneel

Optionales Ende des Gültigkeitszeitraums (YYYY-MM-DD, inklusiv). Nach diesem Datum läuft der Hinweis automatisch aus, ohne dass ihn jemand manuell entfernen muss. Fehlend/null = unbegrenzt gültig.

nullable
createdAtdatetimeoptioneel

Anlagezeitpunkt (informativ).

read-onlynullable
sourceRefobjectoptioneel

Provenance marker for the source system this party was imported from (e.g. TANSS). NOTE: The weclapp sync anchor lives in externalReferences[system="weclapp"], NOT here (ADR 0147 §3).

Default: nullnullable
systemstringvereist

Source system identifier (e.g. tanss, weclapp)

idstringvereist

Entity ID in the source system

externalReferencesobject[]optioneel

Cross-system linking refs (e.g. weclapp). The weclapp entry is the canonical identity anchor for the bidirectional party sync (ADR 0147). Read/written by the inbound + outbound sync workers and indexed for duplicate prevention.

Default: []
systemstringvereist
max. 100 tekens
externalIdstringvereist
max. 200 tekens
externalVersionstringoptioneel
nullable
externalNumberstringoptioneel
max. 200 tekensnullable
syncedAtdatetimeoptioneel
nullable
lastSyncCorrelationIdstringoptioneel
nullable
lastInboundHashstringoptioneel
max. 64 tekensnullable
lastOutboundHashstringoptioneel
max. 64 tekensnullable
syncWithWeclappbooleanoptioneel

Opt-in flag for the bidirectional weclapp party sync (ADR 0147). Only consulted when the tenant runs partySync.scope.mode = "opt-in"; ignored in "all"/"filtered"/"off".

Default: nullnullable
shopConfigobjectoptioneel

Customer-portal shop configuration for this organization. Master switches that gate per-role permissions defined in shop_roles.

Default: nullnullable
enabledbooleanoptioneel

Whether the customer portal shop is enabled for this customer at all. Disabled = portal users belonging to this party see no shop UI.

Default: false
globalPermissionsstring[]optioneel

Fallback permissions granted to portal users of this organization who have no shop role assigned. Use sparingly — prefer explicit roles.

Default: []
featureFlagsobjectoptioneel

Org-level feature flags. A role may grant a permission, but the flag must also allow it. Use to disable a feature globally for one customer regardless of roles.

nullable
allowOrdersbooleanoptioneel
Default: true
allowSubscriptionsbooleanoptioneel
Default: true
viewInvoicesbooleanoptioneel
Default: true
onboardingDismissedAtdatetimeoptioneel

Set when the admin explicitly hides the Shop-Tab onboarding checklist. Null = checklist still relevant. ISO timestamp = dismissed (auto-hidden).

nullable
crmobjectoptioneel

Aggregated CRM relationship metrics (satisfaction, NPS, etc.)

Default: nullnullable
csatobjectoptioneel

Rolling 90-day CSAT aggregate (normalized 0-100)

nullable
avgnumberoptioneel

Weighted average CSAT over the last 90 days (0-100)

0 – 100nullable
trendstringoptioneel

Trend of last 30 days vs previous 60 days

upstabledownnull
nullable
sampleSizeintegeroptioneel

Number of responses included in the rolling window

≥ 0nullable
lastUpdateddatetimeoptioneel

When this aggregate was last recalculated

nullable
lastScorenumberoptioneel

Most recent raw CSAT score

nullable
npsobjectoptioneel

Rolling 90-day NPS aggregate (-100 to 100)

nullable
scorenumberoptioneel

Net Promoter Score over the last 90 days

-100 – 100nullable
trendstringoptioneel
upstabledownnull
nullable
sampleSizeintegeroptioneel
≥ 0nullable
lastUpdateddatetimeoptioneel
nullable
lastScorenumberoptioneel
nullable
inboundReplyAckedAtdatetimeoptioneel

Timestamp at which the latest inbound customer email linked to this party was acknowledged as "handled, no reply needed". Clears the account-level awaiting-reply badge in the CRM list when >= the last inbound email time; a newer inbound email re-arms it. Mirrors opportunity.inboundReplyAckedAt.

nullable
inboundReplyAckedBystringoptioneel

User who acknowledged the latest inbound customer email (see inboundReplyAckedAt).

nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/parties — Lijst, gepagineerd + filterbaar
  • GET /api/v1/parties/<id> — Enkele entity
  • POST /api/v1/parties — Aanmaken
  • PATCH /api/v1/parties/<id> — Gedeeltelijke update
  • DELETE /api/v1/parties/<id> — Soft-delete
  • GET /api/v1/parties/<id>/timeline — Audit + activiteiten

Zoeken