API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · quotations

Quotation Schema

ID del esquema
quotation
Colección
quotations
Permisos
  • Leerquotation_view
  • Crearquotation_create
  • Modificarquotation_edit
  • Eliminarquotation_delete

Campos

Quotation Schema

quotations4 permisos

Schema for validating quotation (Angebot) entities

documentLanguagestringopcional

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
admite null
quotationNumberstringopcional

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

máx. 30 caracteresValor por defecto: nullsolo lecturaadmite null
titlestringopcional

Optional title for the quotation

máx. 200 caracteresValor por defecto: nulladmite null
partyIduuidobligatorio

Recipient (customer) party UUID

contactPartyIdstringopcional

Contact person UUID at customer (PERSON)

PatrónValor por defecto: nulladmite null
opportunityIdstringopcional

Source opportunity UUID (sales pipeline anchor)

PatrónValor por defecto: nulladmite null
proposalIdstringopcional

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

PatrónValor por defecto: nulladmite null
managedEventIdstringopcional

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

PatrónValor por defecto: nulladmite null
assignedToIdstringopcional

Assigned MSP employee UUID

PatrónValor por defecto: nulladmite null
orgUnitIdstringopcional

Responsible org unit UUID

PatrónValor por defecto: nulladmite null
paymentTermIdstringopcional

Payment term reference

PatrónValor por defecto: nulladmite null
positionsobject[]obligatorio

Quotation line items

Valor por defecto: []
iduuidobligatorio
positionNumberintegerobligatorio

Position number for sorting

≥ 0
positionTypestringobligatorio

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

ITEMTEXTSECTION_HEADERSUBTOTAL
Valor por defecto: "ITEM"
articleIdstringopcional

Article UUID (null for free positions)

PatrónValor por defecto: nulladmite null
articleNumberstringopcional

Denormalized article number snapshot

máx. 100 caracteresValor por defecto: nulladmite null
namestringopcional

Position name (snapshot, avoids drift when article changes)

máx. 300 caracteresValor por defecto: nulladmite null
descriptionstringopcional

Position description or note

Valor por defecto: nulladmite null
unitNamestringopcional

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

máx. 100 caracteresValor por defecto: nulladmite null
quantitystringopcional

Quantity (null for TEXT/SECTION_HEADER positions)

PatrónValor por defecto: nulladmite null
unitPriceNetstringopcional

Net unit price (null for TEXT/SECTION_HEADER positions)

PatrónValor por defecto: nulladmite null
discountPercentstringopcional

Line item discount percentage (0–100)

PatrónValor por defecto: nulladmite null
netAmountstringopcional

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

PatrónValor por defecto: nulladmite null
vatRatestringopcional

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

PatrónValor por defecto: nulladmite null
accountCodestringopcional

DATEV revenue account code

máx. 50 caracteresValor por defecto: nulladmite null
billingIntervalstringopcional

Billing interval for recurring positions

MONTHLYQUARTERLYSEMI_ANNUALYEARLYONE_TIMEnull
Valor por defecto: nulladmite null
setupFeestringopcional

One-time setup fee on top of recurring

PatrónValor por defecto: nulladmite null
sourcePositionIdstringopcional

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

PatrónValor por defecto: nulladmite null
isEstimatebooleanopcional

Schätzposition — Abrechnung nach tatsächlicher Menge.

Valor por defecto: false
optionalbooleanopcional

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

admite null
alternativebooleanopcional

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

admite null
introTextstringopcional

Free cover-letter text shown above positions in the PDF

Valor por defecto: nulladmite null
footerTextstringopcional

Terms/conditions text shown below positions in the PDF

Valor por defecto: nulladmite null
notesstringopcional

Internal note (not visible to customer)

máx. 4000 caracteresValor por defecto: nulladmite null
validUntildateobligatorio

Date until which the quotation is valid

statusstringobligatorio

Quotation lifecycle status

DRAFTSENTACCEPTEDREJECTEDEXPIREDCANCELLEDCONVERTED
Valor por defecto: "DRAFT"
sentAtdatetimeopcional

Send timestamp (also lock-marker for editability)

Valor por defecto: nullsolo lecturaadmite null
sentBystringopcional

User who sent the quotation

PatrónValor por defecto: nullsolo lecturaadmite null
acceptedAtdatetimeopcional

Customer acceptance timestamp

Valor por defecto: nullsolo lecturaadmite null
acceptedByContactIdstringopcional

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

PatrónValor por defecto: nullsolo lecturaadmite null
acceptedViastringopcional

Origin of the acceptance

MAGIC_LINKINTERNAL_ON_BEHALFAPIWECLAPP_PORTALWECLAPP_BACKOFFICEnull
Valor por defecto: nullsolo lecturaadmite null
rejectedAtdatetimeopcional
Valor por defecto: nullsolo lecturaadmite null
rejectionReasonstringopcional
máx. 2000 caracteresValor por defecto: nulladmite null
rejectionReasonCodestringopcional
máx. 64 caracteresValor por defecto: nullsolo lecturaadmite null
rejectionReasonLabelstringopcional
máx. 200 caracteresValor por defecto: nullsolo lecturaadmite null
cancelledAtdatetimeopcional
Valor por defecto: nullsolo lecturaadmite null
cancelledBystringopcional
PatrónValor por defecto: nullsolo lecturaadmite null
convertedToSalesOrderIdstringopcional

Sales order created from this quotation

PatrónValor por defecto: nullsolo lecturaadmite null
convertedAtdatetimeopcional
Valor por defecto: nullsolo lecturaadmite null
subtotalNetstringopcional

Sum of net amounts before VAT

PatrónValor por defecto: nulladmite null
totalVatstringopcional

Total VAT amount

PatrónValor por defecto: nulladmite null
totalGrossstringopcional

Gross total (net + VAT)

PatrónValor por defecto: nulladmite null
recurringNetstringopcional

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

PatrónValor por defecto: nulladmite null
onetimeNetstringopcional

One-time portion of net

PatrónValor por defecto: nulladmite null
currencyCodestringopcional

ISO 4217 currency code

PatrónValor por defecto: "EUR"
defaultVatRatestringopcional

Default VAT rate for items without explicit vatRate

PatrónValor por defecto: "19"
headerDiscountstringopcional

Header-level discount percentage (deferred to Phase 3)

PatrónValor por defecto: nulladmite null
recipientAddressobjectopcional

Recipient address snapshot (frozen at DRAFT → SENT)

Valor por defecto: nullsolo lecturaadmite null
pdfFileIdstringopcional

Generated PDF file UUID

PatrónValor por defecto: nullsolo lecturaadmite null
pdfContentHashstringopcional

SHA-256 of canonicalized content; prevents redundant PDF regeneration

máx. 128 caracteresValor por defecto: nullsolo lecturaadmite null
acceptanceTokenstringopcional

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

máx. 128 caracteresValor por defecto: nullsolo lecturaadmite null
acceptanceTokenExpiresAtdatetimeopcional

Token expiry (defaults to validUntil + 7 days)

Valor por defecto: nullsolo lecturaadmite null
respondedTokenHashstringopcional

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

máx. 128 caracteresValor por defecto: nullsolo lecturaadmite null
customerAcceptanceobjectopcional

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

Valor por defecto: nullsolo lecturaadmite null
customerSelectionobjectopcional

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

Valor por defecto: nullsolo lecturaadmite null
linkFirstOpenedAtdatetimeopcional

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

Valor por defecto: nullsolo lecturaadmite null
linkLastOpenedAtdatetimeopcional

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

Valor por defecto: nullsolo lecturaadmite null
linkOpenCountintegeropcional

How often the live customer link was opened

≥ 0Valor por defecto: 0solo lectura
followUpStateobjectopcional

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

Valor por defecto: nullsolo lecturaadmite null
requiresSignaturebooleanopcional

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

Valor por defecto: false
sourcestringopcional

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

máx. 50 caracteresValor por defecto: nulladmite null
tagsstring[]opcional
Valor por defecto: []
weclappIdstringopcional

Linked weclapp quotation id

Valor por defecto: nullsolo lecturaadmite null
weclappLastSyncedAtdatetimeopcional
Valor por defecto: nulladmite null
weclappUrlstringopcional

Deeplink to the quotation in the weclapp UI

Valor por defecto: nulladmite null
externalReferencesobject[]opcional

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

Valor por defecto: []
systemstringobligatorio
máx. 100 caracteres
externalIdstringobligatorio
máx. 200 caracteres
externalVersionstringopcional
admite null
syncedAtdatetimeopcional
admite null
weclappCustomAttributesobject[]opcional

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

Valor por defecto: []
attributeDefinitionIdstringobligatorio
máx. 64 caracteres
stringValuestringopcional
máx. 100000 caracteres
numberValuestringopcional
máx. 64 caracteres
booleanValuebooleanopcional
dateValueintegeropcional
selectedValueIdstringopcional
máx. 64 caracteres
selectedValuesobject[]opcional
idstringobligatorio
máx. 64 caracteres
entityIdstringopcional
máx. 64 caracteres
inboundReplyAckedAtdatetimeopcional

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.

admite null
inboundReplyAckedBystringopcional

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

admite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/quotations — Lista, paginada y filtrable
  • GET /api/v1/quotations/<id> — Una entidad
  • POST /api/v1/quotations — Crear
  • PATCH /api/v1/quotations/<id> — Actualización parcial
  • DELETE /api/v1/quotations/<id> — Eliminación lógica
  • GET /api/v1/quotations/<id>/timeline — Auditoría y actividades

Búsqueda