API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

POST /v1/purchase_orders/{id}/cancel

POST/v1/purchase_orders/{id}/cancel

Bestellung stornieren.

Data model

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

Request body

NameTypeDescription
versioninteger
reasonstring

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X POST https://api.codemeta-os.de/v1/purchase_orders/{id}/cancel \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "version": 0,
  "reason": "string"
}'
const result = await cm.purchase_orders.post({
  "version": 0,
  "reason": "string"
});

Response codes

HTTP Meaning
200 Default Response

Search