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

Quotation Schema

ID du schéma
quotation
Collection
quotations
Autorisations
  • Lirequotation_view
  • Créerquotation_create
  • Modifierquotation_edit
  • Supprimerquotation_delete

Champs

Quotation Schema

quotations4 autorisations

Schema for validating quotation (Angebot) entities

documentLanguagestringfacultatif

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
quotationNumberstringfacultatif

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

max. 30 caractèresPar défaut : nulllecture seulenullable
titlestringfacultatif

Optional title for the quotation

max. 200 caractèresPar défaut : nullnullable
partyIduuidobligatoire

Recipient (customer) party UUID

contactPartyIdstringfacultatif

Contact person UUID at customer (PERSON)

MotifPar défaut : nullnullable
opportunityIdstringfacultatif

Source opportunity UUID (sales pipeline anchor)

MotifPar défaut : nullnullable
proposalIdstringfacultatif

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

MotifPar défaut : nullnullable
managedEventIdstringfacultatif

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

MotifPar défaut : nullnullable
assignedToIdstringfacultatif

Assigned MSP employee UUID

MotifPar défaut : nullnullable
orgUnitIdstringfacultatif

Responsible org unit UUID

MotifPar défaut : nullnullable
paymentTermIdstringfacultatif

Payment term reference

MotifPar défaut : nullnullable
positionsobject[]obligatoire

Quotation line items

Par défaut : []
iduuidobligatoire
positionNumberintegerobligatoire

Position number for sorting

≥ 0
positionTypestringobligatoire

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

ITEMTEXTSECTION_HEADERSUBTOTAL
Par défaut : "ITEM"
articleIdstringfacultatif

Article UUID (null for free positions)

MotifPar défaut : nullnullable
articleNumberstringfacultatif

Denormalized article number snapshot

max. 100 caractèresPar défaut : nullnullable
namestringfacultatif

Position name (snapshot, avoids drift when article changes)

max. 300 caractèresPar défaut : nullnullable
descriptionstringfacultatif

Position description or note

Par défaut : nullnullable
unitNamestringfacultatif

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

max. 100 caractèresPar défaut : nullnullable
quantitystringfacultatif

Quantity (null for TEXT/SECTION_HEADER positions)

MotifPar défaut : nullnullable
unitPriceNetstringfacultatif

Net unit price (null for TEXT/SECTION_HEADER positions)

MotifPar défaut : nullnullable
discountPercentstringfacultatif

Line item discount percentage (0–100)

MotifPar défaut : nullnullable
netAmountstringfacultatif

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

MotifPar défaut : nullnullable
vatRatestringfacultatif

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

MotifPar défaut : nullnullable
accountCodestringfacultatif

DATEV revenue account code

max. 50 caractèresPar défaut : nullnullable
billingIntervalstringfacultatif

Billing interval for recurring positions

MONTHLYQUARTERLYSEMI_ANNUALYEARLYONE_TIMEnull
Par défaut : nullnullable
setupFeestringfacultatif

One-time setup fee on top of recurring

MotifPar défaut : nullnullable
sourcePositionIdstringfacultatif

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

MotifPar défaut : nullnullable
isEstimatebooleanfacultatif

Schätzposition — Abrechnung nach tatsächlicher Menge.

Par défaut : false
optionalbooleanfacultatif

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

nullable
alternativebooleanfacultatif

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

nullable
introTextstringfacultatif

Free cover-letter text shown above positions in the PDF

Par défaut : nullnullable
footerTextstringfacultatif

Terms/conditions text shown below positions in the PDF

Par défaut : nullnullable
notesstringfacultatif

Internal note (not visible to customer)

max. 4000 caractèresPar défaut : nullnullable
validUntildateobligatoire

Date until which the quotation is valid

statusstringobligatoire

Quotation lifecycle status

DRAFTSENTACCEPTEDREJECTEDEXPIREDCANCELLEDCONVERTED
Par défaut : "DRAFT"
sentAtdatetimefacultatif

Send timestamp (also lock-marker for editability)

Par défaut : nulllecture seulenullable
sentBystringfacultatif

User who sent the quotation

MotifPar défaut : nulllecture seulenullable
acceptedAtdatetimefacultatif

Customer acceptance timestamp

Par défaut : nulllecture seulenullable
acceptedByContactIdstringfacultatif

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

MotifPar défaut : nulllecture seulenullable
acceptedViastringfacultatif

Origin of the acceptance

MAGIC_LINKINTERNAL_ON_BEHALFAPIWECLAPP_PORTALWECLAPP_BACKOFFICEnull
Par défaut : nulllecture seulenullable
rejectedAtdatetimefacultatif
Par défaut : nulllecture seulenullable
rejectionReasonstringfacultatif
max. 2000 caractèresPar défaut : nullnullable
rejectionReasonCodestringfacultatif
max. 64 caractèresPar défaut : nulllecture seulenullable
rejectionReasonLabelstringfacultatif
max. 200 caractèresPar défaut : nulllecture seulenullable
cancelledAtdatetimefacultatif
Par défaut : nulllecture seulenullable
cancelledBystringfacultatif
MotifPar défaut : nulllecture seulenullable
convertedToSalesOrderIdstringfacultatif

Sales order created from this quotation

MotifPar défaut : nulllecture seulenullable
convertedAtdatetimefacultatif
Par défaut : nulllecture seulenullable
subtotalNetstringfacultatif

Sum of net amounts before VAT

MotifPar défaut : nullnullable
totalVatstringfacultatif

Total VAT amount

MotifPar défaut : nullnullable
totalGrossstringfacultatif

Gross total (net + VAT)

MotifPar défaut : nullnullable
recurringNetstringfacultatif

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

MotifPar défaut : nullnullable
onetimeNetstringfacultatif

One-time portion of net

MotifPar défaut : nullnullable
currencyCodestringfacultatif

ISO 4217 currency code

MotifPar défaut : "EUR"
defaultVatRatestringfacultatif

Default VAT rate for items without explicit vatRate

MotifPar défaut : "19"
headerDiscountstringfacultatif

Header-level discount percentage (deferred to Phase 3)

MotifPar défaut : nullnullable
recipientAddressobjectfacultatif

Recipient address snapshot (frozen at DRAFT → SENT)

Par défaut : nulllecture seulenullable
pdfFileIdstringfacultatif

Generated PDF file UUID

MotifPar défaut : nulllecture seulenullable
pdfContentHashstringfacultatif

SHA-256 of canonicalized content; prevents redundant PDF regeneration

max. 128 caractèresPar défaut : nulllecture seulenullable
acceptanceTokenstringfacultatif

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

max. 128 caractèresPar défaut : nulllecture seulenullable
acceptanceTokenExpiresAtdatetimefacultatif

Token expiry (defaults to validUntil + 7 days)

Par défaut : nulllecture seulenullable
respondedTokenHashstringfacultatif

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

max. 128 caractèresPar défaut : nulllecture seulenullable
customerAcceptanceobjectfacultatif

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

Par défaut : nulllecture seulenullable
customerSelectionobjectfacultatif

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

Par défaut : nulllecture seulenullable
linkFirstOpenedAtdatetimefacultatif

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

Par défaut : nulllecture seulenullable
linkLastOpenedAtdatetimefacultatif

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

Par défaut : nulllecture seulenullable
linkOpenCountintegerfacultatif

How often the live customer link was opened

≥ 0Par défaut : 0lecture seule
followUpStateobjectfacultatif

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

Par défaut : nulllecture seulenullable
requiresSignaturebooleanfacultatif

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

Par défaut : false
sourcestringfacultatif

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

max. 50 caractèresPar défaut : nullnullable
tagsstring[]facultatif
Par défaut : []
weclappIdstringfacultatif

Linked weclapp quotation id

Par défaut : nulllecture seulenullable
weclappLastSyncedAtdatetimefacultatif
Par défaut : nullnullable
weclappUrlstringfacultatif

Deeplink to the quotation in the weclapp UI

Par défaut : nullnullable
externalReferencesobject[]facultatif

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

Par défaut : []
systemstringobligatoire
max. 100 caractères
externalIdstringobligatoire
max. 200 caractères
externalVersionstringfacultatif
nullable
syncedAtdatetimefacultatif
nullable
weclappCustomAttributesobject[]facultatif

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

Par défaut : []
attributeDefinitionIdstringobligatoire
max. 64 caractères
stringValuestringfacultatif
max. 100000 caractères
numberValuestringfacultatif
max. 64 caractères
booleanValuebooleanfacultatif
dateValueintegerfacultatif
selectedValueIdstringfacultatif
max. 64 caractères
selectedValuesobject[]facultatif
idstringobligatoire
max. 64 caractères
entityIdstringfacultatif
max. 64 caractères
inboundReplyAckedAtdatetimefacultatif

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

Recherche