API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · parties

Party Schema

ID du schéma
party
Collection
parties
Autorisations
  • Lireparty_view
  • Créerparty_create
  • Modifierparty_edit
  • Supprimerparty_delete

Champs

Party Schema

parties4 autorisations

Schema for validating party entities

partyTypestringobligatoire

Type of party

ORGANIZATIONPERSON
namestringobligatoire

Party name

1–200 caractères
displayNamestringobligatoire

Display name

1–200 caractères
abbreviationstringfacultatif

Unique ALL CAPS abbreviation (e.g. ITF)

2–10 caractèresMotifnullable
isCustomerbooleanfacultatif

Whether party is a customer

Par défaut : falsenullable
isProspectbooleanfacultatif

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

Par défaut : falsenullable
isSupplierbooleanfacultatif

Whether party is a supplier

Par défaut : falsenullable
isApproverbooleanfacultatif

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

Par défaut : falsenullable
createdViaInvitationbooleanfacultatif

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.

Par défaut : falsenullable
approvalLimitnumberfacultatif

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

≥ 0nullable
addressesobject[]facultatif
Par défaut : []nullable
_iduuidfacultatif

Address ID (UUIDv7, auto-generated)

lecture seule
sourceRefobjectfacultatif

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
systemstringobligatoire
max. 50 caractères
idstringobligatoire
max. 200 caractères
namestringfacultatif

Site name (e.g. Niederlassung Berlin)

max. 200 caractèresnullable
typestringfacultatif

Address type

MAINBRANCHDELIVERYBILLINGDUNNINGOTHER
Par défaut : "MAIN"
labelstringfacultatif

Custom label (e.g. Standort Berlin)

max. 100 caractèresnullable
streetstringobligatoire
1–200 caractères
zipCodestringobligatoire
1–20 caractères
citystringobligatoire
1–100 caractères
statestringfacultatif
max. 100 caractèresnullable
countryCodestringobligatoire

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

Motif
latitudenumberfacultatif

GPS latitude (WGS84)

-90 – 90nullable
longitudenumberfacultatif

GPS longitude (WGS84)

-180 – 180nullable
invoiceReferencestringfacultatif

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

max. 100 caractèresnullable
showInvoiceReferencebooleanfacultatif

Whether invoiceReference is printed on invoices using this address.

Par défaut : false
separateBillingbooleanfacultatif

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

Par défaut : false
languagestringfacultatif

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

deenesfrnlnull
nullable
phonestringfacultatif

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

max. 50 caractèresnullable
emailemailfacultatif

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

max. 254 caractèresnullable
contactChannelsobject[]facultatif
Par défaut : []nullable
typestringobligatoire
PHONEMOBILEEMAILFAXURLOTHER
valuestringobligatoire
1–255 caractères
labelstringfacultatif
max. 50 caractèresnullable
isPrimarybooleanfacultatif
Par défaut : false
purposesstring[]facultatif

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

Par défaut : []nullable
providerAccountsobject[]facultatif

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 élémentsnullable
_iduuidfacultatif
lecture seule
providerPartyIduuidfacultatif

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

nullable
providerNamestringfacultatif

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

max. 200 caractèresnullable
kindstringfacultatif
CUSTOMER_NUMBERCONTRACT_NUMBERLINE_IDOTHERnull
nullable
numberstringobligatoire
1–100 caractères
labelstringfacultatif
max. 100 caractèresnullable
partyAddressIduuidfacultatif

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

nullable
secretIduuidfacultatif

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

nullable
notesstringfacultatif
max. 1000 caractèresnullable
microsoftTenantsobject[]facultatif

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

max. 20 élémentsnullable
_iduuidfacultatif
lecture seule
tenantIduuidobligatoire

Microsoft Entra tenant id.

lecture seule
initialDomainstringobligatoire

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

max. 100 caractèresMotif
labelstringfacultatif
max. 100 caractèresnullable
checkedAtdatetimefacultatif

Last successful check against Microsoft.

nullable
isPartnerbooleanfacultatif

Whether party is a partner

Par défaut : falsenullable
parentPartyIduuidfacultatif

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

nullable
partyAddressIduuidfacultatif

Address ID at the parent organization where this person is located

Par défaut : nullnullable
websitestringfacultatif

Website URL

max. 500 caractèresnullable
emailDomainsstring[]facultatif

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 élémentséléments uniquesPar défaut : []nullable
emailDomainPrimarybooleanfacultatif

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.

Par défaut : falsenullable
businessHoursobjectfacultatif

Customer business/opening hours (Geschäftszeiten)

nullable
weeklyScheduleobjectfacultatif

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[]facultatif
nullable
startstringobligatoire
Motif
endstringobligatoire
Motif
tueobject[]facultatif
nullable
startstringobligatoire
Motif
endstringobligatoire
Motif
wedobject[]facultatif
nullable
startstringobligatoire
Motif
endstringobligatoire
Motif
thuobject[]facultatif
nullable
startstringobligatoire
Motif
endstringobligatoire
Motif
friobject[]facultatif
nullable
startstringobligatoire
Motif
endstringobligatoire
Motif
satobject[]facultatif
nullable
startstringobligatoire
Motif
endstringobligatoire
Motif
sunobject[]facultatif
nullable
startstringobligatoire
Motif
endstringobligatoire
Motif
notestringfacultatif

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

max. 500 caractèresnullable
taxIdstringfacultatif

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 caractèresMotifnullable
vatIdstringfacultatif

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 caractèresMotifnullable
notesstringfacultatif

Free-text notes

max. 5000 caractèresnullable
firstNamestringfacultatif

First name (for PERSON type)

max. 100 caractèresnullable
lastNamestringfacultatif

Last name (for PERSON type)

max. 100 caractèresnullable
salutationstringfacultatif

Salutation (for PERSON type)

HerrFrauDivers
nullable
academicTitlestringfacultatif

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

max. 60 caractèresnullable
jobTitlestringfacultatif

Job title (for PERSON type)

max. 200 caractèresnullable
birthDatedatefacultatif

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

nullable
preferredLanguagestringfacultatif

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

aaabaeafakamanarasavayazbabebgbhbibmbnbo
nullable
additionalLanguagesstring[]facultatif

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

Par défaut : []
postResolutionContactPreferencestringfacultatif

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
customerNumberstringfacultatif

Customer number

max. 50 caractèresnullable
datevDebitorenkontostringfacultatif

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

max. 10 caractèreslecture seulenullable
datevKreditorenkontostringfacultatif

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

max. 10 caractèreslecture seulenullable
supplierNumberstringfacultatif

Supplier number (Lieferantennummer)

max. 50 caractèresnullable
responsibleUserIduuidfacultatif

Account manager / responsible user (synced with weclapp)

nullable
hasOwnResponsibleUserbooleanfacultatif

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.

Par défaut : false
inheritedResponsibleUserIdsuuid[]facultatif

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

Par défaut : []lecture seule
teamIduuidfacultatif

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[]facultatif

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.

Par défaut : []
hasOwnTeambooleanfacultatif

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).

Par défaut : false
inheritedTeamIdsuuid[]facultatif

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.

Par défaut : []lecture seule
dispatchPreferredTechniciansOnlybooleanfacultatif

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
classificationstringfacultatif

Customer classification (A = highest priority)

ABCD
nullable
isVipbooleanfacultatif

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[]facultatif

Party tags

Par défaut : []nullable
isSelfCompanybooleanfacultatif

Whether this party represents the tenant own company

Par défaut : falselecture seule
isInternalCompanybooleanfacultatif

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.

Par défaut : falsenullable
travelConfigobjectfacultatif

Travel/distance configuration for this party

nullable
distancesobject[]facultatif
Par défaut : []
ownLocationIdstringobligatoire

ID of own company location address

ownLocationLabelstringfacultatif

Display label of the own location

max. 200 caractèresnullable
customerAddressIduuidfacultatif

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

nullable
distanceKmnumberobligatoire

Distance in kilometers

≥ 0
durationMinutesnumberobligatoire

Travel duration in minutes

≥ 0
travelAllowanceIduuidfacultatif

Default travel allowance for this route

nullable
calculatedAtdatetimefacultatif

When the distance was last calculated

nullable
calculationSourcestringfacultatif

How the distance was determined

MANUALOPENROUTESERVICE
nullable
defaultBillingModestringfacultatif

Default billing mode for travel to this party

DISTANCE_BASEDFLAT_RATE
nullable
notesstringfacultatif

Travel configuration notes

max. 1000 caractèresnullable
dunningBlockedbooleanfacultatif

Block all dunning for this customer (Mahnsperre)

Par défaut : falsenullable
inactivebooleanfacultatif

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 }.

Par défaut : falsenullable
inactiveReasonstringfacultatif

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

max. 500 caractèresnullable
inactiveAtdatetimefacultatif

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

nullable
inactiveBystringfacultatif

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

nullable
mergedIntoPartyIduuidfacultatif

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.

lecture seulenullable
mergedAtdatetimefacultatif

When the merge into mergedIntoPartyId was started.

lecture seulenullable
mergedBystringfacultatif

Internal users._id that started the merge.

lecture seulenullable
mergedIntoAddressIduuidfacultatif

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.

lecture seulenullable
billingBlockobjectfacultatif

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

nullable
activebooleanobligatoire
Par défaut : false
reasonstringfacultatif
max. 1000 caractèresnullable
blockedAtdatetimefacultatif
lecture seulenullable
blockedByuuidfacultatif
lecture seulenullable
blockedUntildatefacultatif
nullable
contractBillingobjectfacultatif

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).

lecture seulenullable
collectivebooleanobligatoire
Par défaut : false
sourcestringfacultatif
CODEMETAWECLAPP
Par défaut : "CODEMETA"
updatedAtdatetimefacultatif
lecture seulenullable
serviceBlockobjectfacultatif

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

nullable
activebooleanobligatoire
Par défaut : false
reasonstringfacultatif
max. 1000 caractèresnullable
blockedAtdatetimefacultatif
lecture seulenullable
blockedByuuidfacultatif
lecture seulenullable
blockedUntildatefacultatif
nullable
weclappBlockobjectfacultatif

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
blockedbooleanobligatoire
Par défaut : false
noticestringfacultatif
max. 1000 caractèresnullable
syncedAtdatetimefacultatif
nullable
logoFileIduuidfacultatif

File ID of the party logo (from file storage)

nullable
serviceTypeOverridesobject[]facultatif

Per-customer overrides for service type billing parameters

Par défaut : []nullable
serviceTypeIduuidobligatoire

Service type to override pricing for

roundingMinutesintegerfacultatif

Override rounding increment for this customer

≥ 1nullable
inclusiveMinutesintegerfacultatif

Override inclusive minutes for this customer

≥ 0nullable
pricingDateBasisstringfacultatif

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[]facultatif

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

nullable
validFromdateobligatoire

Price effective from this date

ratePerHourstringfacultatif

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

Motifnullable
discountPercentnumberfacultatif

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
flatRateAmountstringfacultatif

Customer-specific flat rate amount

Motifnullable
travelBillingobjectfacultatif

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
ratePerKmstringfacultatif

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

Motifnullable
ratePerKmScheduleobject[]facultatif

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 élémentsnullable
validFromstringobligatoire
Motif
ratePerKmstringobligatoire
Motif
flatRatestringfacultatif

Customer-wide flat travel fee per assignment

Motifnullable
vehicleBaseFeestringfacultatif

Customer-wide vehicle base fee per assignment

Motifnullable
performanceRecordSettingsobjectfacultatif

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

nullable
groupPositionsByTicketbooleanfacultatif

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

nullable
emergencyServiceBillingstringfacultatif

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

COMBINEDSEPARATEnull
nullable
openTicketBillingstringfacultatif

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[]facultatif

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.

Par défaut : []nullable
_iduuidfacultatif

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

lecture seule
namestringfacultatif

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 caractèresnullable
textstringobligatoire

Hinweistext (Plaintext, mehrzeilig erlaubt)

1–5000 caractères
severitystringfacultatif

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

INFOWARNINGCRITICAL
Par défaut : "INFO"
showOnTicketbooleanfacultatif

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

Par défaut : true
showOnTimeRecordbooleanfacultatif

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

Par défaut : true
sourcestringfacultatif

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

max. 100 caractèresnullable
validFromdatefacultatif

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
validUntildatefacultatif

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
createdAtdatetimefacultatif

Anlagezeitpunkt (informativ).

lecture seulenullable
sourceRefobjectfacultatif

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).

Par défaut : nullnullable
systemstringobligatoire

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

idstringobligatoire

Entity ID in the source system

externalReferencesobject[]facultatif

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.

Par défaut : []
systemstringobligatoire
max. 100 caractères
externalIdstringobligatoire
max. 200 caractères
externalVersionstringfacultatif
nullable
externalNumberstringfacultatif
max. 200 caractèresnullable
syncedAtdatetimefacultatif
nullable
lastSyncCorrelationIdstringfacultatif
nullable
lastInboundHashstringfacultatif
max. 64 caractèresnullable
lastOutboundHashstringfacultatif
max. 64 caractèresnullable
syncWithWeclappbooleanfacultatif

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".

Par défaut : nullnullable
shopConfigobjectfacultatif

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

Par défaut : nullnullable
enabledbooleanfacultatif

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

Par défaut : false
globalPermissionsstring[]facultatif

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

Par défaut : []
featureFlagsobjectfacultatif

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
allowOrdersbooleanfacultatif
Par défaut : true
allowSubscriptionsbooleanfacultatif
Par défaut : true
viewInvoicesbooleanfacultatif
Par défaut : true
onboardingDismissedAtdatetimefacultatif

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

nullable
crmobjectfacultatif

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

Par défaut : nullnullable
csatobjectfacultatif

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

nullable
avgnumberfacultatif

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

0 – 100nullable
trendstringfacultatif

Trend of last 30 days vs previous 60 days

upstabledownnull
nullable
sampleSizeintegerfacultatif

Number of responses included in the rolling window

≥ 0nullable
lastUpdateddatetimefacultatif

When this aggregate was last recalculated

nullable
lastScorenumberfacultatif

Most recent raw CSAT score

nullable
npsobjectfacultatif

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

nullable
scorenumberfacultatif

Net Promoter Score over the last 90 days

-100 – 100nullable
trendstringfacultatif
upstabledownnull
nullable
sampleSizeintegerfacultatif
≥ 0nullable
lastUpdateddatetimefacultatif
nullable
lastScorenumberfacultatif
nullable
inboundReplyAckedAtdatetimefacultatif

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
inboundReplyAckedBystringfacultatif

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

nullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/parties — Liste, paginée et filtrable
  • GET /api/v1/parties/<id> — Une entité
  • POST /api/v1/parties — Créer
  • PATCH /api/v1/parties/<id> — Mise à jour partielle
  • DELETE /api/v1/parties/<id> — Suppression logique
  • GET /api/v1/parties/<id>/timeline — Audit et activités

Recherche