POST /v1/invoices/generate
POST/v1/invoices/generate
Generate an invoice from a performance record (Leistungsnachweis)
Data model
This operation works on the entity Invoice (invoice). All 51 fields — type, validation, required status, relationships — are listed in the schema reference.
Request body
| Name | Type | Description |
|---|---|---|
performanceRecordIdrequired | string | |
vatRate | string | |
paymentTermsDays | integer | |
introText | string | |
closingText | string | |
materialBucketIds | string[] |
Example
curl -X POST https://api.codemeta-os.de/v1/invoices/generate \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"performanceRecordId": "string",
"vatRate": "string",
"paymentTermsDays": 0,
"introText": "string",
"closingText": "string",
"materialBucketIds": []
}'const result = await cm.invoices.post({
"performanceRecordId": "string",
"vatRate": "string",
"paymentTermsDays": 0,
"introText": "string",
"closingText": "string",
"materialBucketIds": []
});Response codes
| HTTP | Meaning |
|---|---|
201 |
Default Response |