API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

POST /v1/quotations/from-opportunity/{opportunityId}

POST/v1/quotations/from-opportunity/{opportunityId}

Create a DRAFT quotation pre-filled from an opportunity (party + assignee only)

Data model

This operation works on the entity Quotation (quotation). All 51 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

NameTypeDescription
weclappCustomAttributesobject[]

Path parameters

NameTypeDescription
opportunityIdrequiredstring

Example

curl -X POST https://api.codemeta-os.de/v1/quotations/from-opportunity/{opportunityId} \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "weclappCustomAttributes": []
}'
const result = await cm.quotations.post({
  "weclappCustomAttributes": []
});

Response codes

HTTP Meaning
201 Default Response

Search