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

Quotation Schema

Schema-ID
quotation
Collection
quotations
Permissions
  • Lezenquotation_view
  • Aanmakenquotation_create
  • Wijzigenquotation_edit
  • Verwijderenquotation_delete

Velden

Quotation Schema

quotations4 permissions

Schema for validating quotation (Angebot) entities

documentLanguagestringoptioneel

Language the document (PDF) is rendered in. Decided when the document is created (explicit → customer language → tenant default → de) and never re-derived. Missing = de.

deenesfrnlnull
nullable
quotationNumberstringoptioneel

Auto-generated quotation number (AN-YYYY-NNNNN); in External-Master imported from weclapp commercialNumber

max. 30 tekensDefault: nullread-onlynullable
titlestringoptioneel

Optional title for the quotation

max. 200 tekensDefault: nullnullable
partyIduuidvereist

Recipient (customer) party UUID

contactPartyIdstringoptioneel

Contact person UUID at customer (PERSON)

PatternDefault: nullnullable
opportunityIdstringoptioneel

Source opportunity UUID (sales pipeline anchor)

PatternDefault: nullnullable
proposalIdstringoptioneel

Legacy: source proposal UUID (Angebotsmappe). ADR 1237: proposal entity removed; field kept for existing documents.

PatternDefault: nullnullable
managedEventIdstringoptioneel

Veranstaltung, aus deren Positionsspiegel das Angebot erzeugt wurde (ADR 0861). Der Rückverweis steht am Angebot, nicht an der Veranstaltung — sie soll nicht wachsen.

PatternDefault: nullnullable
assignedToIdstringoptioneel

Assigned MSP employee UUID

PatternDefault: nullnullable
orgUnitIdstringoptioneel

Responsible org unit UUID

PatternDefault: nullnullable
paymentTermIdstringoptioneel

Payment term reference

PatternDefault: nullnullable
positionsobject[]vereist

Quotation line items

Default: []
iduuidvereist
positionNumberintegervereist

Position number for sorting

≥ 0
positionTypestringvereist

Position type — TEXT/SECTION_HEADER/SUBTOTAL skip quantity/price validation in the editor

ITEMTEXTSECTION_HEADERSUBTOTAL
Default: "ITEM"
articleIdstringoptioneel

Article UUID (null for free positions)

PatternDefault: nullnullable
articleNumberstringoptioneel

Denormalized article number snapshot

max. 100 tekensDefault: nullnullable
namestringoptioneel

Position name (snapshot, avoids drift when article changes)

max. 300 tekensDefault: nullnullable
descriptionstringoptioneel

Position description or note

Default: nullnullable
unitNamestringoptioneel

Unit label snapshot (e.g. "Stk", "h", "Pauschal")

max. 100 tekensDefault: nullnullable
quantitystringoptioneel

Quantity (null for TEXT/SECTION_HEADER positions)

PatternDefault: nullnullable
unitPriceNetstringoptioneel

Net unit price (null for TEXT/SECTION_HEADER positions)

PatternDefault: nullnullable
discountPercentstringoptioneel

Line item discount percentage (0–100)

PatternDefault: nullnullable
netAmountstringoptioneel

Net amount = quantity * unitPriceNet * (1 - discount/100)

PatternDefault: nullnullable
vatRatestringoptioneel

VAT rate, e.g. "19", "7", "0"

PatternDefault: nullnullable
accountCodestringoptioneel

DATEV revenue account code

max. 50 tekensDefault: nullnullable
billingIntervalstringoptioneel

Billing interval for recurring positions

MONTHLYQUARTERLYSEMI_ANNUALYEARLYONE_TIMEnull
Default: nullnullable
setupFeestringoptioneel

One-time setup fee on top of recurring

PatternDefault: nullnullable
sourcePositionIdstringoptioneel

event_position, aus der diese Zeile abgeleitet ist. Der Positionsspiegel bleibt führend; Abweichungen werden angezeigt, nicht zurückgeschrieben.

PatternDefault: nullnullable
isEstimatebooleanoptioneel

Schätzposition — Abrechnung nach tatsächlicher Menge.

Default: false
optionalbooleanoptioneel

Optional position (weclapp quotationItem.optional) — shown with its price, not counted in the totals. Missing/null = false.

nullable
alternativebooleanoptioneel

Alternative position (weclapp quotationItem.alternative) — a variant of the preceding main position, not counted in the totals. Missing/null = false.

nullable
introTextstringoptioneel

Free cover-letter text shown above positions in the PDF

Default: nullnullable
footerTextstringoptioneel

Terms/conditions text shown below positions in the PDF

Default: nullnullable
notesstringoptioneel

Internal note (not visible to customer)

max. 4000 tekensDefault: nullnullable
validUntildatevereist

Date until which the quotation is valid

statusstringvereist

Quotation lifecycle status

DRAFTSENTACCEPTEDREJECTEDEXPIREDCANCELLEDCONVERTED
Default: "DRAFT"
sentAtdatetimeoptioneel

Send timestamp (also lock-marker for editability)

Default: nullread-onlynullable
sentBystringoptioneel

User who sent the quotation

PatternDefault: nullread-onlynullable
acceptedAtdatetimeoptioneel

Customer acceptance timestamp

Default: nullread-onlynullable
acceptedByContactIdstringoptioneel

Contact party who accepted (from magic-link or internal "on behalf")

PatternDefault: nullread-onlynullable
acceptedViastringoptioneel

Origin of the acceptance

MAGIC_LINKINTERNAL_ON_BEHALFAPIWECLAPP_PORTALWECLAPP_BACKOFFICEnull
Default: nullread-onlynullable
rejectedAtdatetimeoptioneel
Default: nullread-onlynullable
rejectionReasonstringoptioneel
max. 2000 tekensDefault: nullnullable
rejectionReasonCodestringoptioneel
max. 64 tekensDefault: nullread-onlynullable
rejectionReasonLabelstringoptioneel
max. 200 tekensDefault: nullread-onlynullable
cancelledAtdatetimeoptioneel
Default: nullread-onlynullable
cancelledBystringoptioneel
PatternDefault: nullread-onlynullable
convertedToSalesOrderIdstringoptioneel

Sales order created from this quotation

PatternDefault: nullread-onlynullable
convertedAtdatetimeoptioneel
Default: nullread-onlynullable
subtotalNetstringoptioneel

Sum of net amounts before VAT

PatternDefault: nullnullable
totalVatstringoptioneel

Total VAT amount

PatternDefault: nullnullable
totalGrossstringoptioneel

Gross total (net + VAT)

PatternDefault: nullnullable
recurringNetstringoptioneel

Recurring portion of net (sum of items with billingInterval != ONE_TIME)

PatternDefault: nullnullable
onetimeNetstringoptioneel

One-time portion of net

PatternDefault: nullnullable
currencyCodestringoptioneel

ISO 4217 currency code

PatternDefault: "EUR"
defaultVatRatestringoptioneel

Default VAT rate for items without explicit vatRate

PatternDefault: "19"
headerDiscountstringoptioneel

Header-level discount percentage (deferred to Phase 3)

PatternDefault: nullnullable
recipientAddressobjectoptioneel

Recipient address snapshot (frozen at DRAFT → SENT)

Default: nullread-onlynullable
pdfFileIdstringoptioneel

Generated PDF file UUID

PatternDefault: nullread-onlynullable
pdfContentHashstringoptioneel

SHA-256 of canonicalized content; prevents redundant PDF regeneration

max. 128 tekensDefault: nullread-onlynullable
acceptanceTokenstringoptioneel

Single-use token for magic-link acceptance (rotated on send)

max. 128 tekensDefault: nullread-onlynullable
acceptanceTokenExpiresAtdatetimeoptioneel

Token expiry (defaults to validUntil + 7 days)

Default: nullread-onlynullable
respondedTokenHashstringoptioneel

SHA-256 of the consumed magic-link token (read-only access after response)

max. 128 tekensDefault: nullread-onlynullable
customerAcceptanceobjectoptioneel

Customer acceptance via magic link: typed name, drawn signature (PNG data URL) and time. IP/user agent live in the history row.

Default: nullread-onlynullable
customerSelectionobjectoptioneel

Customer selection (package, optional positions, alternatives) from the digital folder (ADR 1237)

Default: nullread-onlynullable
linkFirstOpenedAtdatetimeoptioneel

First time the live customer link was opened (server-side)

Default: nullread-onlynullable
linkLastOpenedAtdatetimeoptioneel

Last time the live customer link was opened (server-side)

Default: nullread-onlynullable
linkOpenCountintegeroptioneel

How often the live customer link was opened

≥ 0Default: 0read-only
followUpStateobjectoptioneel

Follow-up steps already handled for this quotation (ADR 1304)

Default: nullread-onlynullable
requiresSignaturebooleanoptioneel

When true, acceptance is routed through the eSign module instead of click+log

Default: false
sourcestringoptioneel

Origin marker (API, WECLAPP, CUSTOMER_PORTAL, ...)

max. 50 tekensDefault: nullnullable
tagsstring[]optioneel
Default: []
weclappIdstringoptioneel

Linked weclapp quotation id

Default: nullread-onlynullable
weclappLastSyncedAtdatetimeoptioneel
Default: nullnullable
weclappUrlstringoptioneel

Deeplink to the quotation in the weclapp UI

Default: nullnullable
externalReferencesobject[]optioneel

Cross-system linking refs (read by inbound sync worker, Phase 2)

Default: []
systemstringvereist
max. 100 tekens
externalIdstringvereist
max. 200 tekens
externalVersionstringoptioneel
nullable
syncedAtdatetimeoptioneel
nullable
weclappCustomAttributesobject[]optioneel

Captured values for weclapp mandatory/optional custom attributes, in weclapp `customAttributes[]` payload shape. Forwarded verbatim on every create/finalize push.

Default: []
attributeDefinitionIdstringvereist
max. 64 tekens
stringValuestringoptioneel
max. 100000 tekens
numberValuestringoptioneel
max. 64 tekens
booleanValuebooleanoptioneel
dateValueintegeroptioneel
selectedValueIdstringoptioneel
max. 64 tekens
selectedValuesobject[]optioneel
idstringvereist
max. 64 tekens
entityIdstringoptioneel
max. 64 tekens
inboundReplyAckedAtdatetimeoptioneel

Timestamp at which the latest inbound customer email on this quotation was acknowledged as "handled, no reply needed". Clears the awaiting-reply badge when >= the last inbound email time; a newer inbound email re-arms it. Local Codemeta annotation with no weclapp counterpart — listed in externalMaster.internalOnlyFields so it may be set even while weclapp masters the quotation and survives re-syncs. 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/quotations — Lijst, gepagineerd + filterbaar
  • GET /api/v1/quotations/<id> — Enkele entity
  • POST /api/v1/quotations — Aanmaken
  • PATCH /api/v1/quotations/<id> — Gedeeltelijke update
  • DELETE /api/v1/quotations/<id> — Soft-delete
  • GET /api/v1/quotations/<id>/timeline — Audit + activiteiten

Zoeken