API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

Create quotation

POST/v1/quotations

Create a new quotation in the active tenant.

Datamodel

Deze operatie werkt op de entiteit Quotation (quotation). Alle 51 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

  • Verplichte velden: partyId, status, positions, validUntil
  • Door de server beheerd: _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 — deze velden worden door het platform toegekend; in de request worden ze genegeerd.

Voorbeeld

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

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken