API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

POST /v1/invoices/generate

POST/v1/invoices/generate

Generate an invoice from a performance record (Leistungsnachweis)

Modèle de données

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

Corps de la requête

NomTypeDescription
performanceRecordIdobligatoirestring
vatRatestring
paymentTermsDaysinteger
introTextstring
closingTextstring
materialBucketIdsstring[]

Exemple

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

Codes de réponse

HTTP Signification
201 Default Response

Recherche