API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la 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)

Modèle de données

Cette opération porte sur l'entité Quotation (quotation). Les 51 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

Corps de la requête

NomTypeDescription
weclappCustomAttributesobject[]

Paramètres de chemin

NomTypeDescription
opportunityIdobligatoirestring

Exemple

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": []
});

Codes de réponse

HTTP Signification
201 Default Response

Recherche