API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

Create quotation

POST/v1/quotations

Create a new quotation in the active tenant.

Datenmodell

Diese Operation arbeitet auf der Entität Quotation (quotation). Alle 49 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.

  • Pflichtfelder: partyId, status, positions, validUntil
  • Server-verwaltet: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, quotationNumber, weclappId, pdfContentHash, recipientAddress, sentAt, sentBy, acceptedAt, acceptedByContactId, acceptedVia, rejectedAt, cancelledAt, cancelledBy, convertedToSalesOrderId, convertedAt, acceptanceToken, acceptanceTokenExpiresAt, pdfFileId — diese Felder vergibt die Plattform; im Request werden sie verworfen.

Beispiel

curl -X POST https://api.codemeta-os.de/v1/quotations \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.quotations.post();

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche