API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

POST /v1/sales-orders/{id}/materialise

POST/v1/sales-orders/{id}/materialise

Materialise this sales-order into a project / tasks / tickets per service position (ADR 0139).

Data model

This operation works on the entity Sales Order (sales_order). All 57 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

NameTypeDescription
targetstring
itemsrequiredarray
projectrequiredobject

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST https://api.codemeta-os.de/v1/sales-orders/{id}/materialise \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "target": "project",
  "items": [],
  "project": null
}'
const result = await cm.sales-orders.post({
  "target": "project",
  "items": [],
  "project": null
});

Response codes

HTTP Meaning
200 Default Response

Search