API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola

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

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

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

Modelo de datos

Esta operación trabaja sobre la entidad Quotation (quotation). Los 51 campos (tipo, validación, obligatoriedad y relaciones) figuran en la referencia del esquema.

Cuerpo de la solicitud

NombreTipoDescripción
weclappCustomAttributesobject[]

Parámetros de ruta

NombreTipoDescripción
opportunityIdobligatoriostring

Ejemplo

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

Códigos de respuesta

HTTP Significado
201 Default Response

Búsqueda