Quotations
All operations for Quotations.
Data model
The endpoints of this module work on the following entity. The schema reference lists every field with type, validation and relationships:
| Entity | Schema ID | Fields | Sequence | Permissions |
|---|---|---|---|---|
| Quotation | quotation |
51 | — | quotation_* |
Endpoints
| Method | Path | Operation | Description |
|---|---|---|---|
POST |
/v1/quotations |
Create quotation | Create a new quotation in the active tenant. |
DELETE |
/v1/quotations/{id} |
Delete quotation | Soft delete entity. |
GET |
/v1/quotations/{id} |
Get quotation by id | Fetch a single quotation. |
GET |
/v1/quotations/by-opportunity/{opportunityId} |
GET /v1/quotations/by-opportunity/{opportunityId} | List all quotations linked to an opportunity |
GET |
/v1/quotations/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/quotations/{id}/pdf |
GET /v1/quotations/{id}/pdf | Render quotation as PDF (DIN 5008 layout) |
GET |
/v1/quotations/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/quotations/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/quotations/weclapp/custom-attribute-definitions |
GET /v1/quotations/weclapp/custom-attribute-definitions | List weclapp custom-attribute definitions for an entity type |
GET |
/v1/quotations/weclapp/party-search |
GET /v1/quotations/weclapp/party-search | Search weclapp parties for an ENTITY custom-attribute picker |
GET |
/v1/quotations/weclapp/search |
GET /v1/quotations/weclapp/search | Search weclapp quotations for on-demand import |
GET |
/v1/quotations |
List quotations | List quotations for the active tenant. |
PATCH |
/v1/quotations/{id} |
Patch quotation | JSON Merge Patch update. |
POST |
/v1/quotations/{id}/accept |
POST /v1/quotations/{id}/accept | Internal accept-on-behalf transition SENT → ACCEPTED |
POST |
/v1/quotations/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/quotations/{id}/cancel |
POST /v1/quotations/{id}/cancel | Cancel a quotation in DRAFT, SENT, ACCEPTED, or EXPIRED status |
POST |
/v1/quotations/{id}/convert-to-sales-order |
POST /v1/quotations/{id}/convert-to-sales-order | Create a sales order from an accepted quotation (ACCEPTED → CONVERTED) |
POST |
/v1/quotations/{id}/emails/import |
POST /v1/quotations/{id}/emails/import | CodeMeta OS API endpoint. |
POST |
/v1/quotations/from-opportunity/{opportunityId} |
POST /v1/quotations/from-opportunity/{opportunityId} | Create a DRAFT quotation pre-filled from an opportunity (party + assignee only) |
POST |
/v1/quotations/{id}/push-to-weclapp |
POST /v1/quotations/{id}/push-to-weclapp | Push a freshly-created local DRAFT quotation to weclapp as a placeholder. |
POST |
/v1/quotations/{id}/recalculate |
POST /v1/quotations/{id}/recalculate | Recompute denormalized totals (subtotalNet, totalVat, totalGross, recurringNet, onetimeNet) |
POST |
/v1/quotations/{id}/reject |
POST /v1/quotations/{id}/reject | Internal reject-on-behalf transition SENT → REJECTED |
POST |
/v1/quotations/{id}/send |
POST /v1/quotations/{id}/send | Transition DRAFT → SENT: generate number, freeze recipient address, render PDF, issue acceptance token |
POST |
/v1/quotations/sync-from-weclapp |
POST /v1/quotations/sync-from-weclapp | Enqueue a weclapp quotation pull for the current tenant (runs in background) |
POST |
/v1/quotations/{id}/transition |
POST /v1/quotations/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/quotations/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
POST |
/v1/quotations/weclapp/import |
POST /v1/quotations/weclapp/import | Import one weclapp quotation by id (creates the source=WECLAPP mirror) |
PUT |
/v1/quotations/{id}/opportunity |
PUT /v1/quotations/{id}/opportunity | Link or unlink a quotation to/from an opportunity |
PUT |
/v1/quotations/{id} |
Replace quotation | Full replace with optimistic locking. |